@mastra/client-js 1.11.2-alpha.0 → 1.12.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,99 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.12.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - **Added Responses API support for local Mastra apps** ([#14339](https://github.com/mastra-ai/mastra/pull/14339))
8
+
9
+ You can now call Mastra through a Responses API flow and continue stored turns with
10
+ `previous_response_id`, while keeping `model` as a Mastra model string and using
11
+ `agent_id` to target the registered Mastra agent that handles the request. This API acts as an agent-backed
12
+ adapter layer on top of Mastra memory and storage. Advanced provider-native settings can
13
+ also be passed through with `providerOptions`, and provider-returned continuation state
14
+ is surfaced back on the response under the same `providerOptions` field. Stored
15
+ response IDs now map directly to the persisted assistant turn ID in Mastra memory.
16
+ Configured tool definitions are returned under `tools`, while executed tool activity
17
+ is surfaced through `output` items such as `function_call`, `function_call_output`,
18
+ and the final assistant message. Stored responses also return `conversation_id`, which
19
+ maps directly to the underlying Mastra memory thread ID. You can create a conversation
20
+ explicitly with `client.conversations.create()` or let the first stored response create
21
+ it implicitly, inspect the stored item history with `client.conversations.items.list()`,
22
+ retrieve the conversation with `client.conversations.retrieve()`, or remove it with
23
+ `client.conversations.delete()`. Responses requests also support
24
+ `text.format`, including `json_object` for JSON mode and `json_schema` for
25
+ schema-constrained structured output, through the same agent-backed route.
26
+
27
+ ```ts
28
+ import { MastraClient } from '@mastra/client-js';
29
+
30
+ const client = new MastraClient({
31
+ baseUrl: 'http://localhost:4111',
32
+ });
33
+
34
+ const first = await client.responses.create({
35
+ model: 'openai/gpt-5',
36
+ agent_id: 'support-agent',
37
+ input: 'Write a short bedtime story.',
38
+ store: true,
39
+ });
40
+
41
+ const second = await client.responses.create({
42
+ model: 'openai/gpt-5',
43
+ agent_id: 'support-agent',
44
+ input: 'Make it funnier.',
45
+ store: true,
46
+ previous_response_id: first.id,
47
+ });
48
+
49
+ const items = await client.conversations.items.list(first.conversation_id!);
50
+
51
+ const jsonResponse = await client.responses.create({
52
+ model: 'openai/gpt-5',
53
+ agent_id: 'support-agent',
54
+ input: 'Return a JSON object with a title and summary.',
55
+ text: {
56
+ format: {
57
+ type: 'json_object',
58
+ },
59
+ },
60
+ });
61
+
62
+ const structuredResponse = await client.responses.create({
63
+ model: 'openai/gpt-5',
64
+ agent_id: 'support-agent',
65
+ input: 'Return a structured support ticket summary.',
66
+ text: {
67
+ format: {
68
+ type: 'json_schema',
69
+ name: 'ticket_summary',
70
+ strict: true,
71
+ schema: {
72
+ type: 'object',
73
+ properties: {
74
+ summary: { type: 'string' },
75
+ priority: { type: 'string' },
76
+ },
77
+ required: ['summary', 'priority'],
78
+ additionalProperties: false,
79
+ },
80
+ },
81
+ },
82
+ });
83
+ ```
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [[`9a43b47`](https://github.com/mastra-ai/mastra/commit/9a43b476465e86c9aca381c2831066b5c33c999a)]:
88
+ - @mastra/core@1.21.0-alpha.0
89
+
90
+ ## 1.11.2
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [[`cbeec24`](https://github.com/mastra-ai/mastra/commit/cbeec24b3c97a1a296e7e461e66cc7f7d215dc50), [`cee146b`](https://github.com/mastra-ai/mastra/commit/cee146b5d858212e1df2b2730fc36d3ceda0e08d), [`aa0aeff`](https://github.com/mastra-ai/mastra/commit/aa0aeffa11efbef5e219fbd97bf43d263cfe3afe), [`2bcec65`](https://github.com/mastra-ai/mastra/commit/2bcec652d62b07eab15e9eb9822f70184526eede), [`ad9bded`](https://github.com/mastra-ai/mastra/commit/ad9bdedf86a824801f49928a8d40f6e31ff5450f), [`cbeec24`](https://github.com/mastra-ai/mastra/commit/cbeec24b3c97a1a296e7e461e66cc7f7d215dc50), [`208c0bb`](https://github.com/mastra-ai/mastra/commit/208c0bbacbf5a1da6318f2a0e0c544390e542ddc), [`f566ee7`](https://github.com/mastra-ai/mastra/commit/f566ee7d53a3da33a01103e2a5ac2070ddefe6b0)]:
95
+ - @mastra/core@1.20.0
96
+
3
97
  ## 1.11.2-alpha.0
4
98
 
5
99
  ### Patch Changes
package/dist/client.d.ts CHANGED
@@ -3,11 +3,13 @@ import type { ServerDetailInfo } from '@mastra/core/mcp';
3
3
  import type { RequestContext } from '@mastra/core/request-context';
4
4
  import type { PaginationInfo, TraceRecord, ListTracesArgs, ListTracesResponse, ListLogsArgs, ListLogsResponse, ListScoresArgs, ListScoresResponse as ListScoresResponseNew, CreateScoreBody, CreateScoreResponse, GetScoreAggregateArgs, GetScoreAggregateResponse, GetScoreBreakdownArgs, GetScoreBreakdownResponse, GetScoreTimeSeriesArgs, GetScoreTimeSeriesResponse, GetScorePercentilesArgs, GetScorePercentilesResponse, ListFeedbackArgs, ListFeedbackResponse, CreateFeedbackBody, CreateFeedbackResponse, GetFeedbackAggregateArgs, GetFeedbackAggregateResponse, GetFeedbackBreakdownArgs, GetFeedbackBreakdownResponse, GetFeedbackTimeSeriesArgs, GetFeedbackTimeSeriesResponse, GetFeedbackPercentilesArgs, GetFeedbackPercentilesResponse, GetMetricAggregateArgs, GetMetricAggregateResponse, GetMetricBreakdownArgs, GetMetricBreakdownResponse, GetMetricTimeSeriesArgs, GetMetricTimeSeriesResponse, GetMetricPercentilesArgs, GetMetricPercentilesResponse, GetMetricNamesArgs, GetMetricNamesResponse, GetMetricLabelKeysArgs, GetMetricLabelKeysResponse, GetMetricLabelValuesArgs, GetMetricLabelValuesResponse, GetEntityTypesResponse, GetEntityNamesArgs, GetEntityNamesResponse, GetServiceNamesResponse, GetEnvironmentsResponse, GetTagsArgs, GetTagsResponse } from '@mastra/core/storage';
5
5
  import type { WorkflowInfo } from '@mastra/core/workflows';
6
- import { Agent, MemoryThread, Tool, Processor, Workflow, Vector, BaseResource, A2A, MCPTool, AgentBuilder, StoredAgent, StoredPromptBlock, StoredMCPClient, StoredScorer, StoredSkill, ToolProvider, ProcessorProvider, Workspace } from './resources/index.js';
6
+ import { Agent, MemoryThread, Tool, Processor, Workflow, Vector, BaseResource, A2A, MCPTool, AgentBuilder, Conversations, StoredAgent, StoredPromptBlock, StoredMCPClient, StoredScorer, StoredSkill, ToolProvider, ProcessorProvider, Workspace, Responses } from './resources/index.js';
7
7
  import type { ListScoresBySpanParams, LegacyTracesPaginatedArg, LegacyGetTracesResponse } from './resources/observability.js';
8
8
  import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, AgentVersionIdentifier, GetLogParams, GetLogsParams, GetLogsResponse, GetToolResponse, GetProcessorResponse, GetWorkflowResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, McpServerToolListResponse, GetScorerResponse, ListScoresByScorerIdParams, ListScoresByRunIdParams, ListScoresByEntityIdParams, SaveScoreParams, SaveScoreResponse, GetMemoryConfigParams, GetMemoryConfigResponse, ListMemoryThreadMessagesResponse, MemorySearchResponse, ListAgentsModelProvidersResponse, ListMemoryThreadsParams, ListMemoryThreadsResponse, ListStoredAgentsParams, ListStoredAgentsResponse, CreateStoredAgentParams, StoredAgentResponse, ListStoredPromptBlocksParams, ListStoredPromptBlocksResponse, CreateStoredPromptBlockParams, StoredPromptBlockResponse, ListStoredScorersParams, ListStoredScorersResponse, CreateStoredScorerParams, StoredScorerResponse, ListStoredMCPClientsParams, ListStoredMCPClientsResponse, CreateStoredMCPClientParams, StoredMCPClientResponse, ListStoredSkillsParams, ListStoredSkillsResponse, CreateStoredSkillParams, StoredSkillResponse, GetSystemPackagesResponse, ListScoresResponse as ListScoresResponseOld, GetObservationalMemoryParams, GetObservationalMemoryResponse, AwaitBufferStatusParams, AwaitBufferStatusResponse, GetMemoryStatusResponse, ListWorkspacesResponse, ListVectorsResponse, ListEmbeddersResponse, DatasetRecord, DatasetItem, DatasetExperiment, DatasetExperimentResult, ExperimentReviewCounts, CreateDatasetParams, UpdateDatasetParams, AddDatasetItemParams, UpdateDatasetItemParams, BatchInsertDatasetItemsParams, BatchDeleteDatasetItemsParams, GenerateDatasetItemsParams, GeneratedItem, TriggerDatasetExperimentParams, UpdateExperimentResultParams, CompareExperimentsParams, CompareExperimentsResponse, DatasetItemVersionResponse, DatasetVersionResponse, ListToolProvidersResponse, GetProcessorProvidersResponse } from './types.js';
9
9
  export declare class MastraClient extends BaseResource {
10
10
  private observability;
11
+ readonly conversations: Conversations;
12
+ readonly responses: Responses;
11
13
  constructor(options: ClientOptions);
12
14
  /**
13
15
  * Retrieves all available agents
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,cAAc,EACd,kBAAkB,EAElB,YAAY,EACZ,gBAAgB,EAEhB,cAAc,EACd,kBAAkB,IAAI,qBAAqB,EAC3C,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAE3B,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,6BAA6B,EAC7B,0BAA0B,EAC1B,8BAA8B,EAE9B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,4BAA4B,EAE5B,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EA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;;OAEG;IACI,sBAAsB,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAWrG;;OAEG;IACI,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAOjG"}
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.11.2-alpha.0"
6
+ version: "1.12.0-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -30,11 +30,13 @@ Read the individual reference documents for detailed explanations and code examp
30
30
  - [Reference: toAISdkV4Messages()](references/reference-ai-sdk-to-ai-sdk-v4-messages.md) - API reference for toAISdkV4Messages(), a function to convert Mastra messages to AI SDK v4 UI messages.
31
31
  - [Reference: toAISdkV5Messages()](references/reference-ai-sdk-to-ai-sdk-v5-messages.md) - API reference for toAISdkV5Messages(), a function to convert Mastra messages to AI SDK v5 UI messages.
32
32
  - [Reference: Agents API](references/reference-client-js-agents.md) - Learn how to interact with Mastra AI agents, including generating responses, streaming interactions, and managing agent tools using the client-js SDK.
33
+ - [Reference: OpenAI Responses API Conversations](references/reference-client-js-conversations.md) - API reference for the client-js helpers that call Mastra's OpenAI-compatible `/v1/conversations` routes.
33
34
  - [Reference: Error handling](references/reference-client-js-error-handling.md) - Learn about the built-in retry mechanism and error handling capabilities in the Mastra client-js SDK.
34
35
  - [Reference: Logs API](references/reference-client-js-logs.md) - Learn how to access and query system logs and debugging information in Mastra using the client-js SDK.
35
36
  - [Reference: Mastra client SDK](references/reference-client-js-mastra-client.md) - Learn how to interact with Mastra using the client-js SDK.
36
37
  - [Reference: Memory API](references/reference-client-js-memory.md) - Learn how to manage conversation threads and message history in Mastra using the client-js SDK.
37
38
  - [Reference: Observability API](references/reference-client-js-observability.md) - Learn how to retrieve traces, monitor application performance, and score traces using the client-js SDK.
39
+ - [Reference: OpenAI Responses API](references/reference-client-js-responses.md) - API reference for the client-js helpers that call Mastra's OpenAI-compatible `/v1/responses` routes.
38
40
  - [Reference: Telemetry API](references/reference-client-js-telemetry.md) - Learn how to retrieve and analyze traces from your Mastra application for monitoring and debugging using the client-js SDK.
39
41
  - [Reference: Tools API](references/reference-client-js-tools.md) - Learn how to interact with and execute tools available in the Mastra platform using the client-js SDK.
40
42
  - [Reference: Vectors API](references/reference-client-js-vectors.md) - Learn how to work with vector embeddings for semantic search and similarity matching in Mastra using the client-js SDK.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.2-alpha.0",
2
+ "version": "1.12.0-alpha.0",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -4,7 +4,7 @@ The Mastra Client SDK provides a concise and type-safe interface for interacting
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- To ensure smooth local development, make sure you have:
7
+ Before you start local development, have:
8
8
 
9
9
  - Node.js `v22.13.0` or later
10
10
  - TypeScript `v4.7` or higher (if using TypeScript)
@@ -54,15 +54,17 @@ export const mastraClient = new MastraClient({
54
54
 
55
55
  ## Core APIs
56
56
 
57
- The Mastra Client SDK exposes all resources served by the Mastra Server
57
+ The Mastra Client SDK exposes all resources served by the Mastra Server.
58
58
 
59
59
  - **[Agents](https://mastra.ai/reference/client-js/agents)**: Generate responses and stream conversations.
60
60
  - **[Memory](https://mastra.ai/reference/client-js/memory)**: Manage conversation threads and message history.
61
61
  - **[Tools](https://mastra.ai/reference/client-js/tools)**: Executed and managed tools.
62
62
  - **[Workflows](https://mastra.ai/reference/client-js/workflows)**: Trigger workflows and track their execution.
63
63
  - **[Vectors](https://mastra.ai/reference/client-js/vectors)**: Use vector embeddings for semantic search.
64
+ - **[Responses](https://mastra.ai/reference/client-js/responses)**: Call the OpenAI Responses API through Mastra agents. This API is currently experimental.
65
+ - **[Conversations](https://mastra.ai/reference/client-js/conversations)**: Work with OpenAI Responses API conversations and their stored item history. This API is currently experimental.
64
66
  - **[Logs](https://mastra.ai/reference/client-js/logs)**: View logs and debug system behavior.
65
- - **[Telemetry](https://mastra.ai/reference/client-js/telemetry)**: Monitor app performance and trace activity.
67
+ - **[Telemetry](https://mastra.ai/reference/client-js/telemetry)**: View app performance and trace activity.
66
68
 
67
69
  ## Generating responses
68
70
 
@@ -133,7 +135,7 @@ export const mastraClient = new MastraClient({
133
135
 
134
136
  ## Credentials and session cookies
135
137
 
136
- **Authenticate Mastra API calls with session cookies** when your UI and Mastra API are not on the same origin—different host, subdomain, or port (for example Mastra Studio on one port and a custom server on another). Add **`credentials: 'include'`** to `MastraClient` so each request carries the cookies the user already has after sign-in. Skip this and you will often get **`401`** responses from Mastra even though login succeeded in the browser.
138
+ **Authenticate Mastra API calls with session cookies** when your UI and Mastra API aren't on the same origin—different host, subdomain, or port (for example Mastra Studio on one port and a custom server on another). Add **`credentials: 'include'`** to `MastraClient` so each request carries the cookies the user already has after sign-in. Skip this and you will often get **`401`** responses from Mastra even though login succeeded in the browser.
137
139
 
138
140
  ```typescript
139
141
  import { MastraClient } from '@mastra/client-js'
@@ -146,7 +148,7 @@ export const mastraClient = new MastraClient({
146
148
 
147
149
  **Allow credentialed cross-origin requests on your server**—see [CORS: requests with credentials](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS#requests_with_credentials). You need a concrete `Access-Control-Allow-Origin` (not `*`) and `Access-Control-Allow-Credentials: true`, or the browser will block the call before it reaches Mastra.
148
150
 
149
- **Using `@mastra/react`?** Wrap your app with `MastraReactProvider`, set `baseUrl` and `apiPrefix` to match your server, and rely on the default `credentials: 'include'`. Change `credentials` only when you deliberately want `same-origin` or `omit` behavior.
151
+ **Using `@mastra/react`?** Wrap your app with `MastraReactProvider`, set `baseUrl` and `apiPrefix` to match your server, and rely on the default `credentials: 'include'`. Change `credentials` only when you want `same-origin` or `omit` behavior.
150
152
 
151
153
  ## Adding request cancelling
152
154
 
@@ -219,7 +221,7 @@ const handleClientTool = async () => {
219
221
  }
220
222
  ```
221
223
 
222
- ### Client tool's agent
224
+ ### Client tool agent
223
225
 
224
226
  This is a standard Mastra [agent](https://mastra.ai/docs/agents/overview) configured to return hex color codes, intended to work with the browser-based client tool defined above.
225
227
 
@@ -236,9 +238,9 @@ export const colorAgent = new Agent({
236
238
  })
237
239
  ```
238
240
 
239
- ## Server-side environments
241
+ ## Use MastraClient on the server
240
242
 
241
- You can also use `MastraClient` in server-side environments such as API routes, serverless functions or actions. The usage will broadly remain the same but you may need to recreate the response to your client:
243
+ You can also use `MastraClient` in server-side environments such as API routes, serverless functions, or actions. The usage remains the same, but you may need to recreate the response for your client:
242
244
 
243
245
  ```typescript
244
246
  export async function action() {
@@ -252,7 +254,7 @@ export async function action() {
252
254
 
253
255
  ## Best practices
254
256
 
255
- 1. **Error Handling**: Implement proper [error handling](https://mastra.ai/reference/client-js/error-handling) for development scenarios.
257
+ 1. **Error Handling**: Use [error handling](https://mastra.ai/reference/client-js/error-handling) for development scenarios.
256
258
  2. **Environment Variables**: Use environment variables for configuration.
257
259
  3. **Debugging**: Enable detailed [logging](https://mastra.ai/reference/client-js/logs) when needed.
258
- 4. **Performance**: Monitor application performance, [telemetry](https://mastra.ai/reference/client-js/telemetry) and traces.
260
+ 4. **Performance**: Track application performance, [telemetry](https://mastra.ai/reference/client-js/telemetry), and traces.
@@ -0,0 +1,135 @@
1
+ # OpenAI Responses API Conversations
2
+
3
+ The OpenAI Responses API Conversations surface provides methods to create, retrieve, delete, and inspect thread-backed conversations in Mastra.
4
+
5
+ This API follows up on the [OpenAI Responses API](https://mastra.ai/reference/client-js/responses). Stored Responses calls return `conversation_id`, and in Mastra that value is the raw memory `threadId`. Use `client.conversations` when you want to work with that thread directly.
6
+
7
+ This API is currently experimental.
8
+
9
+ ## Relationship to OpenAI Responses
10
+
11
+ Use the OpenAI Responses API for generation and continuation:
12
+
13
+ ```typescript
14
+ const response = await client.responses.create({
15
+ agent_id: 'support-agent',
16
+ input: 'Start a support thread',
17
+ store: true,
18
+ })
19
+
20
+ console.log(response.conversation_id)
21
+ ```
22
+
23
+ Use the Conversations API when you want to inspect or manage that stored thread:
24
+
25
+ ```typescript
26
+ const conversation = await client.conversations.retrieve(response.conversation_id!)
27
+ const items = await client.conversations.items.list(response.conversation_id!)
28
+ ```
29
+
30
+ ## Usage example
31
+
32
+ ```typescript
33
+ import { MastraClient } from '@mastra/client-js'
34
+
35
+ const client = new MastraClient({
36
+ baseUrl: 'http://localhost:4111',
37
+ })
38
+
39
+ const conversation = await client.conversations.create({
40
+ agent_id: 'support-agent',
41
+ })
42
+
43
+ console.log(conversation.id)
44
+ ```
45
+
46
+ ## Methods
47
+
48
+ ### Lifecycle
49
+
50
+ #### `create(params)`
51
+
52
+ Creates a new conversation thread for the selected agent.
53
+
54
+ ```typescript
55
+ const conversation = await client.conversations.create({
56
+ agent_id: 'support-agent',
57
+ title: 'Billing support',
58
+ })
59
+ ```
60
+
61
+ **Returns:** `Promise<Conversation>`.
62
+
63
+ #### `retrieve(conversationId, requestContext?)`
64
+
65
+ Retrieves a conversation by its thread ID.
66
+
67
+ ```typescript
68
+ const conversation = await client.conversations.retrieve('thread_123')
69
+
70
+ console.log(conversation.thread)
71
+ ```
72
+
73
+ **Returns:** `Promise<Conversation>`.
74
+
75
+ #### `delete(conversationId, requestContext?)`
76
+
77
+ Deletes a conversation by its thread ID.
78
+
79
+ ```typescript
80
+ const deleted = await client.conversations.delete('thread_123')
81
+
82
+ console.log(deleted.deleted)
83
+ ```
84
+
85
+ **Returns:** `Promise<ConversationDeleted>`.
86
+
87
+ ### Items
88
+
89
+ #### `items.list(conversationId, requestContext?)`
90
+
91
+ Lists the stored items for a conversation.
92
+
93
+ ```typescript
94
+ const items = await client.conversations.items.list('thread_123')
95
+
96
+ console.log(items.data)
97
+ ```
98
+
99
+ **Returns:** `Promise<ConversationItemsPage>`.
100
+
101
+ ## Response shape
102
+
103
+ `create()` and `retrieve()` return a conversation object with:
104
+
105
+ - `id`: The raw thread ID
106
+ - `object`: Always `'conversation'`
107
+ - `thread`: The stored thread record
108
+
109
+ `delete()` returns:
110
+
111
+ - `id`: The raw thread ID
112
+ - `object`: Always `'conversation.deleted'`
113
+ - `deleted`: Always `true`
114
+
115
+ `items.list()` returns:
116
+
117
+ - `object`: Always `'list'`
118
+ - `data`: Conversation items such as `message`, `function_call`, and `function_call_output`
119
+ - `first_id`: The first item ID in the page
120
+ - `last_id`: The last item ID in the page
121
+ - `has_more`: Whether more items exist beyond the current page
122
+
123
+ ## Parameters
124
+
125
+ **agent\_id** (`string`): Required. The registered Mastra agent that owns the conversation memory.
126
+
127
+ **conversation\_id** (`string`): Optional conversation ID to use as the raw thread ID.
128
+
129
+ **resource\_id** (`string`): Optional resource ID to associate with the conversation thread.
130
+
131
+ **title** (`string`): Optional thread title stored with the conversation.
132
+
133
+ **metadata** (`Record<string, unknown>`): Optional thread metadata stored with the conversation.
134
+
135
+ **requestContext** (`RequestContext | Record<string, any>`): Optional request context forwarded to the Mastra server.
@@ -50,6 +50,10 @@ export const mastraClient = new MastraClient({
50
50
 
51
51
  **getWorkflow(workflowId)** (`Workflow`): Retrieves a specific workflow instance by ID.
52
52
 
53
+ **responses** (`Responses`): Provides OpenAI-style Responses API helpers with \`create()\`, \`retrieve()\`, \`stream()\`, and \`delete()\`.
54
+
55
+ **conversations** (`Conversations`): Provides conversation helpers with \`create()\`, \`retrieve()\`, \`delete()\`, and \`items.list()\`.
56
+
53
57
  **getVector(vectorName)** (`MastraVector`): Returns a vector store instance by name.
54
58
 
55
59
  **listLogs(params)** (`Promise<LogEntry[]>`): Fetches system logs matching the provided filters.
@@ -0,0 +1,213 @@
1
+ # OpenAI Responses API
2
+
3
+ The OpenAI Responses API provides methods to create, retrieve, stream, and delete OpenAI-compatible responses through Mastra agents.
4
+
5
+ These routes are agent-backed adapters over Mastra agents, memory, and storage. Use `agent_id` to select the Mastra agent that should handle the request. You can pass `model` to override the agent's configured model for a single request, or omit it to use the model already configured on the agent.
6
+
7
+ Stored responses also return `conversation_id`. In Mastra, this is the raw memory `threadId`.
8
+
9
+ This API is currently experimental.
10
+
11
+ ## Usage example
12
+
13
+ ```typescript
14
+ import { MastraClient } from '@mastra/client-js'
15
+
16
+ const client = new MastraClient({
17
+ baseUrl: 'http://localhost:4111',
18
+ })
19
+
20
+ const response = await client.responses.create({
21
+ agent_id: 'support-agent',
22
+ input: 'Summarize this ticket',
23
+ store: true,
24
+ })
25
+
26
+ console.log(response.output_text)
27
+ ```
28
+
29
+ ## Methods
30
+
31
+ ### Lifecycle
32
+
33
+ #### `create(params)`
34
+
35
+ Creates a response.
36
+
37
+ ```typescript
38
+ const response = await client.responses.create({
39
+ agent_id: 'support-agent',
40
+ input: 'Summarize this ticket',
41
+ })
42
+ ```
43
+
44
+ **Returns:** `Promise<ResponsesResponse>` when `stream` is omitted or `false`.
45
+
46
+ When `stream: true`, `create()` returns an async iterable of SSE-style event payloads:
47
+
48
+ ```typescript
49
+ const stream = await client.responses.create({
50
+ agent_id: 'support-agent',
51
+ input: 'Summarize this ticket',
52
+ stream: true,
53
+ })
54
+
55
+ for await (const event of stream) {
56
+ if (event.type === 'response.output_text.delta') {
57
+ process.stdout.write(event.delta)
58
+ }
59
+ }
60
+ ```
61
+
62
+ **Returns:** `Promise<ResponsesStream>`.
63
+
64
+ #### `retrieve(responseId, requestContext?)`
65
+
66
+ Retrieves a stored response.
67
+
68
+ ```typescript
69
+ const response = await client.responses.retrieve('msg_123')
70
+ ```
71
+
72
+ **Returns:** `Promise<ResponsesResponse>`.
73
+
74
+ #### `delete(responseId, requestContext?)`
75
+
76
+ Deletes a stored response.
77
+
78
+ ```typescript
79
+ const deleted = await client.responses.delete('msg_123')
80
+ ```
81
+
82
+ **Returns:** `Promise<{ id: string; object: "response"; deleted: true }>`
83
+
84
+ #### `stream(params)`
85
+
86
+ Creates a streaming response.
87
+
88
+ ```typescript
89
+ const stream = await client.responses.stream({
90
+ agent_id: 'support-agent',
91
+ input: 'Say hello',
92
+ })
93
+
94
+ for await (const event of stream) {
95
+ console.log(event.type)
96
+ }
97
+ ```
98
+
99
+ **Returns:** `Promise<ResponsesStream>`.
100
+
101
+ ## Stored responses and conversations
102
+
103
+ Stored responses include both `response.id` and `conversation_id`.
104
+
105
+ - `response.id` is the response ID. For stored agent-backed responses, this is the persisted assistant message ID.
106
+ - `conversation_id` is the raw Mastra thread ID.
107
+
108
+ Use `previous_response_id` when you want to continue from a previous stored response. Use `conversation_id` when you want to target a known thread directly.
109
+
110
+ ```typescript
111
+ const first = await client.responses.create({
112
+ agent_id: 'support-agent',
113
+ input: 'Start a support thread',
114
+ store: true,
115
+ })
116
+
117
+ const second = await client.responses.create({
118
+ agent_id: 'support-agent',
119
+ conversation_id: first.conversation_id!,
120
+ input: 'Add a follow-up to the same thread',
121
+ store: true,
122
+ })
123
+ ```
124
+
125
+ Use [`client.conversations`](https://mastra.ai/reference/client-js/conversations) when you want to create, retrieve, delete, or inspect the underlying OpenAI Responses API conversation directly.
126
+
127
+ ## Function calling (tools)
128
+
129
+ `response.tools` contains the configured function definitions available for the request.
130
+
131
+ If the model calls a function, that activity appears in `response.output` as `function_call` and `function_call_output` items alongside the final assistant `message`.
132
+
133
+ ## Structured output
134
+
135
+ Use `text.format` when you want JSON output.
136
+
137
+ - `json_object` enables JSON mode.
138
+ - `json_schema` enables schema-constrained structured output.
139
+
140
+ Mastra routes both through the agent's structured output path and still returns the JSON in the normal assistant message text output.
141
+
142
+ ```typescript
143
+ const response = await client.responses.create({
144
+ agent_id: 'support-agent',
145
+ input: 'Return a structured support ticket summary.',
146
+ text: {
147
+ format: {
148
+ type: 'json_schema',
149
+ name: 'ticket_summary',
150
+ schema: {
151
+ type: 'object',
152
+ properties: {
153
+ summary: { type: 'string' },
154
+ priority: { type: 'string' },
155
+ },
156
+ required: ['summary', 'priority'],
157
+ additionalProperties: false,
158
+ },
159
+ },
160
+ },
161
+ })
162
+ ```
163
+
164
+ ## Provider-backed requests
165
+
166
+ Use `providerOptions` when you need provider-specific options that Mastra does not normalize at the Responses layer.
167
+
168
+ ```typescript
169
+ const response = await client.responses.create({
170
+ agent_id: 'support-agent',
171
+ input: 'Continue this exchange',
172
+ providerOptions: {
173
+ openai: {
174
+ previousResponseId: 'resp_123',
175
+ },
176
+ },
177
+ })
178
+ ```
179
+
180
+ ## Response shape
181
+
182
+ The returned response object includes:
183
+
184
+ - `id`: The response ID
185
+ - `output`: Output items such as the assistant `message`, `function_call`, and `function_call_output`
186
+ - `output_text`: Convenience getter that joins assistant text output
187
+ - `tools`: Configured tool definitions for the request
188
+ - `conversation_id`: The raw thread ID for stored responses
189
+ - `text`: The requested text output format, when provided
190
+
191
+ ## Parameters
192
+
193
+ **agent\_id** (`string`): Required on initial requests. Selects the Mastra agent that executes the request. Stored follow-up turns can omit it when continuing with \`previous\_response\_id\`.
194
+
195
+ **model** (`string`): Optional model override for this request, such as \`openai/gpt-5\`. If omitted, Mastra uses the model configured on the selected agent.
196
+
197
+ **input** (`string | Array<{ role: 'system' | 'developer' | 'user' | 'assistant'; content: string | Array<{ type: 'input_text' | 'text' | 'output_text'; text: string }> }>`): Required. Input text or message array for the response.
198
+
199
+ **instructions** (`string`): Optional instruction override for this request.
200
+
201
+ **text** (`{ format: { type: 'json_object' } | { type: 'json_schema'; name: string; schema: Record<string, unknown>; description?: string; strict?: boolean } }`): Optional text output format. Use \`json\_object\` for JSON mode or \`json\_schema\` for schema-constrained structured output.
202
+
203
+ **providerOptions** (`Record<string, Record<string, unknown> | undefined>`): Optional provider-specific options passed through to the underlying model call.
204
+
205
+ **stream** (`boolean`): When true, returns an async iterable of Responses API events.
206
+
207
+ **store** (`boolean`): When true, persists the response through the selected agent memory.
208
+
209
+ **conversation\_id** (`string`): Optional conversation identifier. In Mastra, this is the raw memory thread ID.
210
+
211
+ **previous\_response\_id** (`string`): Continues a stored response chain from a previous stored response.
212
+
213
+ **requestContext** (`RequestContext | Record<string, any>`): Optional request context forwarded to the Mastra server.