bodhi-realtime-agent / SaveArtifactParams
Interface: SaveArtifactParams
Defined in: src/types/workspace.ts:2
Parameters for saving an artifact produced by an agent or tool.
Properties
agentName?
optionalagentName?:string
Defined in: src/types/workspace.ts:8
Name of the agent that produced the artifact.
content
content:
Buffer<ArrayBufferLike> |Uint8Array<ArrayBufferLike>
Defined in: src/types/workspace.ts:14
Raw bytes.
metadata?
optionalmetadata?:Record<string,unknown>
Defined in: src/types/workspace.ts:16
Optional metadata (filename, dimensions, etc.).
mimeType
mimeType:
string
Defined in: src/types/workspace.ts:12
MIME type (e.g. image/png, application/pdf).
sessionId?
optionalsessionId?:string
Defined in: src/types/workspace.ts:4
Session that produced the artifact (injected by session.workspace when omitted).
toolCallId?
optionaltoolCallId?:string
Defined in: src/types/workspace.ts:10
Tool call that produced the artifact (for correlation).
userId?
optionaluserId?:string
Defined in: src/types/workspace.ts:6
User context (injected by session.workspace when omitted).