You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added: AgentDefaults::with_model() constructor for simpler defaults
Add convenience method to create AgentDefaults with only a model specified,
letting temperature and top_p inherit provider defaults.
Changes:
- Added AgentDefaults::with_model(model) constructor
- Updated 14 call sites to use with_model() instead of struct literal
- Simplified example to use API key constants instead of env var check
- Updated documentation examples to use new shorthand
Benefits:
- Reduces boilerplate from 5 lines to 1 for common case
- Makes code intent clearer at a glance
- Example no longer requires pre-setting environment variables
0 commit comments