-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: fix agent test recorded responses #1462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any docs around how the recorded responses were generated/updated?
@terrytangyuan basically add --record-responses flag LLAMA_STACK_CONFIG=fireworks pytest -v tests/integration/agents/test_agents.py --text-model meta-llama/Llama-3.3-70B-Instruct --record-responses. cc @ehhuang to add some quick docs |
Will those get updated every time we run? |
@terrytangyuan the model is that if inference responses need to change, you need to re-record. Otherwise you work off of recorded responses which are stored in files — in that mode, you don’t call inference APIs at all. |
Got it. Thanks! Still catching up with recent changes... |
# What does this PR do? - Introduce `AsyncAgent` -- an async version of Agent wrapper using AsyncLlamaStackClient - Enable async def with client_tool decorator - Closes llamastack/llama-stack#1391 ```python class Agent: def create_session(...): ... def create_turn(...): ... class AsyncAgent async def create_session(...): ... async def create_turn(...): ... ``` > NOTE, there's some code duplication to keep the distinction and avoid too many if/else [//]: # (If resolving an issue, uncomment and update the line below) [//]: # (Closes #[issue-number]) ## Test Plan - test with script in: https://github.com/meta-llama/llama-stack-apps/blob/async_agent/examples/agents/async_agent.py - test with ReAct agent ``` pytest -v tests/client-sdk/agents/test_agents.py --inference-model meta-llama/Llama-3.1-8B-Instruct ``` <img width="843" alt="image" src="https://github.com/user-attachments/assets/29c08ff6-4e8e-4ca3-a017-e1445b1648d2" /> - TODO (follow up): add a test case in client-sdk agents test in llama-stack - sync agent test passing in: llamastack/llama-stack#1462 [//]: # (## Documentation) [//]: # (- [ ] Added a Changelog entry if the change is significant)
What does this PR do?
Test Plan