Skip to content

Variable: MastraUpdateThreadResponseSchema

const MastraUpdateThreadResponseSchema: ZodObject<{ agentId: ZodString; ok: ZodLiteral<true>; thread: ZodObject<{ createdAt: ZodString; id: ZodString; metadata: ZodOptional<ZodUnknown>; resourceId: ZodString; title: ZodOptional<ZodString>; updatedAt: ZodString; }, $strip>; }, $strip>

JSON payload returned by PATCH ${basePath}/threads. Echoes the renamed thread in its post-update wire shape so the client can reflect the new title without a re-fetch.

Fields:

  • ok: literal true on success.
  • agentId: agent whose thread was renamed.
  • thread: the updated thread (carries the new title).