Patch Changes
-
#102
cdfec65
Thanks @omeraplak! - refactor: use 'instructions' field for Agent definitions in examples - #88Updated documentation examples (READMEs, docs, blogs) and relevant package code examples to use the
instructions
field instead ofdescription
when definingAgent
instances.This change aligns the examples with the preferred API usage for the
Agent
class, whereinstructions
provides behavioral guidance to the agent/LLM. This prepares for the eventual deprecation of thedescription
field specifically forAgent
class 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"), });
-
Updated dependencies [
cdfec65
]:- @voltagent/core@0.1.14
- @voltagent/xsai@0.1.6