·
983 commits
to main
since this release
Patch Changes
-
#102
cdfec65Thanks @omeraplak! - refactor: use 'instructions' field for Agent definitions in examples - #88Updated documentation examples (READMEs, docs, blogs) and relevant package code examples to use the
instructionsfield instead ofdescriptionwhen definingAgentinstances.This change aligns the examples with the preferred API usage for the
Agentclass, whereinstructionsprovides behavioral guidance to the agent/LLM. This prepares for the eventual deprecation of thedescriptionfield specifically forAgentclass definitions.Example Change for Agent Definition:
const agent = new Agent({ name: "My Assistant", - description: "A helpful assistant.", + instructions: "A helpful assistant.", llm: new VercelAIProvider(), model: openai("gpt-4o-mini"), });