Skip to content

Conversation

@AbdurrehmanSubhani
Copy link
Contributor

This PR adds Agent version comparison with the current USDK version installed on the user's workstation.

Agent's created after a breaking change update to USDK would not work/cause unexpected behaviour with user's on a lower USDK version hence they need to be warned.

@vercel
Copy link

vercel bot commented Nov 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 5:14am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 5:14am

const agentSpecs = await parseAgentSpecs(args._[0]);

try {
await warnIfAgentsUseNewerSDKVersion(agentSpecs, opts);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably shouldn't wait here as it will slow down the chat starting.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe cache it for a period and don't do it during chat, but on any usdk command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants