We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
code from https://mastra.ai/blog/dynamic-agents
const dynamicAgent = new Agent({ tools: ({ runtimeContext }) => { // Use runtimeContext.get() to access variables const temperatureScale = runtimeContext.get("temperature-scale"); return temperatureScale === "celsius" ? celsiusTools : fahrenheitTools; }, **instructions: ({ runtimeContext }) => { const temperatureScale = runtimeContext.get("temperature-scale"); return `You are assisting with ${temperatureScale} temperature.`; },** model: ({ runtimeContext }) => { return runtimeContext.get("preferFast") ? openai("gpt-4o-mini") : openai("gpt-4o"); }, });
but instructions like this is invalid on mastra@0.9.0.
instructions should be able to declared dymanicly
None
Agents
No response
The text was updated successfully, but these errors were encountered:
Yep, it looks like dynamic agents aren't in the release at all.
Sorry, something went wrong.
You probably need the alpha versions look on npm to get the latest alpha
No branches or pull requests
Describe the Bug
code from https://mastra.ai/blog/dynamic-agents
but instructions like this is invalid on mastra@0.9.0.
Steps To Reproduce
Expected Behavior
instructions should be able to declared dymanicly
Environment Information
None
Component
Agents
Code Snippet
Error Logs
Additional Context
No response
Verification
The text was updated successfully, but these errors were encountered: