Skip to content

Conversation

@hanzlfs
Copy link

@hanzlfs hanzlfs commented Dec 20, 2024

Add response format to enable agent to make structured output.

@hanzlfs
Copy link
Author

hanzlfs commented Dec 20, 2024

Test with llama-stack-app e2e

Screenshot 2024-12-20 at 11 34 30 AM

Host:

Screenshot 2024-12-20 at 11 35 15 AM

@hanzlfs hanzlfs changed the title Sync updates from stainless branch: hanzlfs/dev Add agent response format for structured output Dec 20, 2024
ashwinb pushed a commit to llamastack/llama-stack that referenced this pull request Jan 28, 2025
# What does this PR do?

Add response format for agents structured output.

- [ ] Using structured output for agents (interior_design app as an
example) (#issue)
llamastack/llama-stack-apps#122


## Test Plan
E2E test plan with llama-stack-apps interior_design

Please describe:
 Test ran: 

 - provide instructions so it can be reproduced.
 Start your distro:
llama stack run llama_stack/templates/fireworks/run.yaml --env
FIREWORKS_API_KEY=<API_KEY>
 
Run api test:
```PYTHONPATH=. python examples/interior_design_assistant/api.py localhost 5000 examples/interior_design_assistant/resources/documents/ examples/interior_design_assistant/resources/images/fireplaces```


## Sources
Results: 
llamastack/llama-stack-client-python#72

## Before submitting

- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [ ] Ran pre-commit to handle lint / formatting issues.
- [x] Read the [contributor guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md),
      Pull Request section?
- [ ] Updated relevant documentation.
- [ ] Wrote necessary unit or integration tests.
@yanxi0830 yanxi0830 closed this Feb 6, 2025
@yanxi0830
Copy link
Contributor

Already synced by previous commits.

@ashwinb ashwinb deleted the agent-diff branch August 14, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants