Skip to content
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

Add agent response format for structured output #72

Closed
wants to merge 2 commits into from
Closed

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 meta-llama/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)
meta-llama/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: 
meta-llama/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.

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.

3 participants