-
Notifications
You must be signed in to change notification settings - Fork 282
Adding docs for AI SDK #4035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “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? Sign in to your account
Adding docs for AI SDK #4035
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
📖 Docs PR preview links |
docs/develop/typescript/index.mdx
Outdated
| - [Temporal TypeScript Community Slack](https://temporalio.slack.com/archives/C01DKSMU94L) | ||
| - [TypeScript SDK Forum](https://community.temporal.io/tag/typescript-sdk) | ||
| ::: | ||
| - [TypeScript SDK Forum](https://community.temporal.io/tag/typescript-sdk) ::: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [TypeScript SDK Forum](https://community.temporal.io/tag/typescript-sdk) ::: | |
| - [TypeScript SDK Forum](https://community.temporal.io/tag/typescript-sdk) |
| developer experience that you are already familiar with while Temporal handles Durable Execution for you. | ||
|
|
||
| All code snippets in this guide are taken from the TypeScript SDK | ||
| [ai-sdk samples](https://github.com/temporalio/samples-typescript/tree/main/ai-sdk). Refer to the samples for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This link goes to a 404.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it's 404 right now because the samples are not published yet
Co-authored-by: Milecia McG <47196133+flippedcoder@users.noreply.github.com>
Co-authored-by: Milecia McG <47196133+flippedcoder@users.noreply.github.com>
| export async function getWeather(input: { | ||
| location: string; | ||
| }): Promise<{ city: string; temperatureRange: string; conditions: string }> { | ||
| console.log('Activity execution'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably ditch this log, I know it came from me.
| [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) is an open standard that lets AI applications connect | ||
| to external tools and data sources. Calls to MCP servers, being calls to external APIs, are non-deterministic and would | ||
| usually need to be implemented as Activities. The Temporal AI SDK integration handles this for you and provides a | ||
| built-in implementation of a stateless MCP client that you can use inside Workflows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to elaborate a bit on the drawbacks of stateless at some point, unsure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think that would be out of scope for us. We already mention that it is stateless -- it would take at least whole paragraph to explain all the benefits of drawbacks of a stateless client and it's not really related to temporal.
What does this PR do?
Notes to reviewers