Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/pages/agent-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class LiteLLMAgent(scenario.AgentAdapter):
model=self.model,
messages=input.messages
)
return response.choices[0].message
return response.choices[0].message # type: ignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there no way we can have types here?

```

### 3. Stateful Agents
Expand Down Expand Up @@ -157,4 +157,4 @@ Now that you understand agent integration, explore specific integration guides:
Or dive deeper into advanced topics:

- [Scenario Basics](/scenario) - Master scenario creation and control
- Check the [AgentAdapter API Reference](/reference/python/scenario/agent_adapter.html) for detailed documentation */}
- Check the [AgentAdapter API Reference](/reference/python/scenario/agent_adapter.html) for detailed documentation */}
2 changes: 1 addition & 1 deletion docs/docs/pages/basics/cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def my_agent_function(messages) -> scenario.AgentReturnTypes:
model="openai/gpt-4o-mini",
messages=messages
)
return response.choices[0].message
return response.choices[0].message # type: ignore
```

### 3. Run Tests
Expand Down
9 changes: 6 additions & 3 deletions docs/docs/pages/introduction/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def vegetarian_recipe_agent(messages) -> scenario.AgentReturnTypes:
*messages,
],
)
return response.choices[0].message
return response.choices[0].message # type: ignore
```

### 2. Set up your environment
Expand All @@ -102,7 +102,10 @@ uv run pytest -s test_my_agent.py

You should see output showing the conversation between the simulated user and your agent, followed by the judge's evaluation:

<EmbeddedScript id="asciicast-nvO5GWGzqKTTCd8gtNSezQw11" src="https://asciinema.org/a/nvO5GWGzqKTTCd8gtNSezQw11.js" />
<EmbeddedScript
id="asciicast-nvO5GWGzqKTTCd8gtNSezQw11"
src="https://asciinema.org/a/nvO5GWGzqKTTCd8gtNSezQw11.js"
/>

## What happened?

Expand All @@ -125,4 +128,4 @@ In this example:

- Learn about [Scenario Basics](../basics/concepts) to understand the framework deeply
- Explore [Agent Integration](../agent-integration) to connect your existing agents
- Check out more [examples](https://github.com/langwatch/scenario/tree/main/examples) on GitHub
- Check out more [examples](https://github.com/langwatch/scenario/tree/main/examples) on GitHub
2 changes: 1 addition & 1 deletion python/scenario/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def invoke(self, message: str, context: dict) -> str:
model="gpt-4",
messages=[{"role": "user", "content": message}]
)
return response.choices[0].message.content
return response.choices[0].message.content # type: ignore

# Usage in tests
scenario.configure(cache_key="my-test-suite-v1")
Expand Down
Loading