Repository navigation
Breaking changes
See MIGRATION.md for the steps to migrate from 0.2.0, with before and after code.
Agent::run(model, prompt, toolbox)is replaced byagent.run(prompt).await, which returnsAgentResult<D>instead ofD; the model and toolbox are set withAgent::with_modelandAgent::with_toolbox, or per run.- The agent no longer remembers earlier runs: pass the history with
with_history(&history)and appendresult.new_messages. The system prompt is not part of the history. - An answer cut off by the token limit is
AgentError::MaxTokensinstead ofAgentError::InvalidAnswer;AgentError::LlmandAgentError::ClientInithold anLlmError. Agent::new_with_providertakes aProviderinstead ofAdapterKind;Agent::new_with_clientis removed.ToolChoiceandReasoningEffortare imported fromagentai.
New features
- (agent) [breaking] streaming, caller-owned history, run details and agentai's own types (#66) (by @AdamStrojek)
Miscellaneous
- reorder What's New for 0.2.0 by what matters to users (#64) (by @AdamStrojek) - #64
- update Future Plans and fix the README logo on crates.io (#63) (by @AdamStrojek) - #63