@kaifronsdal/transcript-viewer
Version:
A web-based viewer for AI conversation transcripts with rollback support
2,109 lines • 47.5 kB
JSON
{
"$defs": {
"AddMessage": {
"description": "Edit that adds a message to the transcript.",
"properties": {
"operation": {
"const": "add",
"default": "add",
"title": "Operation",
"type": "string"
},
"message": {
"discriminator": {
"mapping": {
"assistant": "#/$defs/ChatMessageAssistant",
"system": "#/$defs/ChatMessageSystem",
"tool": "#/$defs/ChatMessageTool",
"user": "#/$defs/ChatMessageUser"
},
"propertyName": "role"
},
"oneOf": [
{
"$ref": "#/$defs/ChatMessageSystem"
},
{
"$ref": "#/$defs/ChatMessageUser"
},
{
"$ref": "#/$defs/ChatMessageAssistant"
},
{
"$ref": "#/$defs/ChatMessageTool"
}
],
"title": "Message"
}
},
"required": [
"message"
],
"title": "AddMessage",
"type": "object"
},
"ChatMessageAssistant": {
"description": "Assistant chat message.",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/ContentText"
},
{
"$ref": "#/$defs/ContentReasoning"
},
{
"$ref": "#/$defs/ContentImage"
},
{
"$ref": "#/$defs/ContentAudio"
},
{
"$ref": "#/$defs/ContentVideo"
},
{
"$ref": "#/$defs/ContentData"
},
{
"$ref": "#/$defs/ContentToolUse"
},
{
"$ref": "#/$defs/ContentDocument"
}
]
},
"type": "array"
}
],
"title": "Content"
},
"source": {
"anyOf": [
{
"enum": [
"input",
"generate"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Source"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
},
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"role": {
"const": "assistant",
"default": "assistant",
"title": "Role",
"type": "string"
},
"tool_calls": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/ToolCall"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Tool Calls"
},
"model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Model"
}
},
"required": [
"content"
],
"title": "ChatMessageAssistant",
"type": "object"
},
"ChatMessageSystem": {
"description": "System chat message.",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/ContentText"
},
{
"$ref": "#/$defs/ContentReasoning"
},
{
"$ref": "#/$defs/ContentImage"
},
{
"$ref": "#/$defs/ContentAudio"
},
{
"$ref": "#/$defs/ContentVideo"
},
{
"$ref": "#/$defs/ContentData"
},
{
"$ref": "#/$defs/ContentToolUse"
},
{
"$ref": "#/$defs/ContentDocument"
}
]
},
"type": "array"
}
],
"title": "Content"
},
"source": {
"anyOf": [
{
"enum": [
"input",
"generate"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Source"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
},
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"role": {
"const": "system",
"default": "system",
"title": "Role",
"type": "string"
}
},
"required": [
"content"
],
"title": "ChatMessageSystem",
"type": "object"
},
"ChatMessageTool": {
"description": "Tool chat message.",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/ContentText"
},
{
"$ref": "#/$defs/ContentReasoning"
},
{
"$ref": "#/$defs/ContentImage"
},
{
"$ref": "#/$defs/ContentAudio"
},
{
"$ref": "#/$defs/ContentVideo"
},
{
"$ref": "#/$defs/ContentData"
},
{
"$ref": "#/$defs/ContentToolUse"
},
{
"$ref": "#/$defs/ContentDocument"
}
]
},
"type": "array"
}
],
"title": "Content"
},
"source": {
"anyOf": [
{
"enum": [
"input",
"generate"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Source"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
},
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"role": {
"const": "tool",
"default": "tool",
"title": "Role",
"type": "string"
},
"tool_call_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Tool Call Id"
},
"function": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Function"
},
"error": {
"anyOf": [
{
"$ref": "#/$defs/ToolCallError"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"content"
],
"title": "ChatMessageTool",
"type": "object"
},
"ChatMessageUser": {
"description": "User chat message.",
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"content": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"anyOf": [
{
"$ref": "#/$defs/ContentText"
},
{
"$ref": "#/$defs/ContentReasoning"
},
{
"$ref": "#/$defs/ContentImage"
},
{
"$ref": "#/$defs/ContentAudio"
},
{
"$ref": "#/$defs/ContentVideo"
},
{
"$ref": "#/$defs/ContentData"
},
{
"$ref": "#/$defs/ContentToolUse"
},
{
"$ref": "#/$defs/ContentDocument"
}
]
},
"type": "array"
}
],
"title": "Content"
},
"source": {
"anyOf": [
{
"enum": [
"input",
"generate"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Source"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadata"
},
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"role": {
"const": "user",
"default": "user",
"title": "Role",
"type": "string"
},
"tool_call_id": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Tool Call Id"
}
},
"required": [
"content"
],
"title": "ChatMessageUser",
"type": "object"
},
"ContentAudio": {
"description": "Audio content.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "audio",
"default": "audio",
"title": "Type",
"type": "string"
},
"audio": {
"title": "Audio",
"type": "string"
},
"format": {
"enum": [
"wav",
"mp3"
],
"title": "Format",
"type": "string"
}
},
"required": [
"audio",
"format"
],
"title": "ContentAudio",
"type": "object"
},
"ContentCitation": {
"description": "A generic content citation.",
"properties": {
"cited_text": {
"anyOf": [
{
"type": "string"
},
{
"additionalItems": false,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"maxItems": 2,
"minItems": 2,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Cited Text"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"internal": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/$defs/JsonValue"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Internal"
},
"type": {
"const": "content",
"default": "content",
"title": "Type",
"type": "string"
}
},
"title": "ContentCitation",
"type": "object"
},
"ContentData": {
"description": "Model internal.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "data",
"default": "data",
"title": "Type",
"type": "string"
},
"data": {
"additionalProperties": {
"$ref": "#/$defs/JsonValue"
},
"title": "Data",
"type": "object"
}
},
"required": [
"data"
],
"title": "ContentData",
"type": "object"
},
"ContentDocument": {
"description": "Document content (e.g. a PDF).",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "document",
"default": "document",
"title": "Type",
"type": "string"
},
"document": {
"title": "Document",
"type": "string"
},
"filename": {
"title": "Filename",
"type": "string"
},
"mime_type": {
"title": "Mime Type",
"type": "string"
}
},
"required": [
"document"
],
"title": "ContentDocument",
"type": "object"
},
"ContentImage": {
"description": "Image content.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "image",
"default": "image",
"title": "Type",
"type": "string"
},
"image": {
"title": "Image",
"type": "string"
},
"detail": {
"default": "auto",
"enum": [
"auto",
"low",
"high"
],
"title": "Detail",
"type": "string"
}
},
"required": [
"image"
],
"title": "ContentImage",
"type": "object"
},
"ContentReasoning": {
"description": "Reasoning content.\n\nSee the specification for [thinking blocks](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#understanding-thinking-blocks) for Claude models.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "reasoning",
"default": "reasoning",
"title": "Type",
"type": "string"
},
"reasoning": {
"title": "Reasoning",
"type": "string"
},
"signature": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Signature"
},
"redacted": {
"default": false,
"title": "Redacted",
"type": "boolean"
}
},
"required": [
"reasoning"
],
"title": "ContentReasoning",
"type": "object"
},
"ContentText": {
"description": "Text content.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "text",
"default": "text",
"title": "Type",
"type": "string"
},
"text": {
"title": "Text",
"type": "string"
},
"refusal": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Refusal"
},
"citations": {
"anyOf": [
{
"items": {
"discriminator": {
"mapping": {
"content": "#/$defs/ContentCitation",
"document": "#/$defs/DocumentCitation",
"url": "#/$defs/UrlCitation"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/ContentCitation"
},
{
"$ref": "#/$defs/DocumentCitation"
},
{
"$ref": "#/$defs/UrlCitation"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Citations"
}
},
"required": [
"text"
],
"title": "ContentText",
"type": "object"
},
"ContentToolUse": {
"description": "Server side tool use.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "tool_use",
"default": "tool_use",
"title": "Type",
"type": "string"
},
"tool_type": {
"title": "Tool Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"context": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Context"
},
"arguments": {
"$ref": "#/$defs/JsonValue"
},
"result": {
"$ref": "#/$defs/JsonValue"
},
"error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Error"
}
},
"required": [
"tool_type",
"id",
"name",
"arguments",
"result"
],
"title": "ContentToolUse",
"type": "object"
},
"ContentVideo": {
"description": "Video content.",
"properties": {
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "video",
"default": "video",
"title": "Type",
"type": "string"
},
"video": {
"title": "Video",
"type": "string"
},
"format": {
"enum": [
"mp4",
"mpeg",
"mov"
],
"title": "Format",
"type": "string"
}
},
"required": [
"video",
"format"
],
"title": "ContentVideo",
"type": "object"
},
"DecisionEvent": {
"description": "Event that indicates a something non-deterministic has happened.",
"properties": {
"type": {
"const": "decision_event",
"default": "decision_event",
"title": "Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Metadata"
},
"timestamp": {
"format": "date-time",
"title": "Timestamp",
"type": "string"
},
"content": {
"title": "Content"
}
},
"required": [
"content"
],
"title": "DecisionEvent",
"type": "object"
},
"DocumentCitation": {
"description": "A citation that refers to a page range in a document.",
"properties": {
"cited_text": {
"anyOf": [
{
"type": "string"
},
{
"additionalItems": false,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"maxItems": 2,
"minItems": 2,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Cited Text"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"internal": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/$defs/JsonValue"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Internal"
},
"type": {
"const": "document",
"default": "document",
"title": "Type",
"type": "string"
},
"range": {
"anyOf": [
{
"$ref": "#/$defs/DocumentRange"
},
{
"type": "null"
}
],
"default": null
}
},
"title": "DocumentCitation",
"type": "object"
},
"DocumentRange": {
"description": "A range specifying a section of a document.",
"properties": {
"type": {
"enum": [
"block",
"page",
"char"
],
"title": "Type",
"type": "string"
},
"start_index": {
"title": "Start Index",
"type": "integer"
},
"end_index": {
"title": "End Index",
"type": "integer"
}
},
"required": [
"type",
"start_index",
"end_index"
],
"title": "DocumentRange",
"type": "object"
},
"InfoEvent": {
"description": "Event that adds information to the transcript.",
"properties": {
"type": {
"const": "info_event",
"default": "info_event",
"title": "Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Metadata"
},
"timestamp": {
"format": "date-time",
"title": "Timestamp",
"type": "string"
},
"info": {
"anyOf": [
{
"type": "string"
},
{
"additionalProperties": true,
"type": "object"
}
],
"title": "Info"
}
},
"required": [
"info"
],
"title": "InfoEvent",
"type": "object"
},
"JSONPatchEdit": {
"description": "Edit that applies a JSON patch to the transcript.",
"properties": {
"operation": {
"const": "json_patch",
"default": "json_patch",
"title": "Operation",
"type": "string"
},
"patch": {
"items": {
"$ref": "#/$defs/JsonChange"
},
"title": "Patch",
"type": "array"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"required": [
"patch"
],
"title": "JSONPatchEdit",
"type": "object"
},
"JSONSchema": {
"description": "JSON Schema for type.",
"properties": {
"type": {
"anyOf": [
{
"enum": [
"string",
"integer",
"number",
"boolean",
"array",
"object",
"null"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
},
"format": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Format"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"default": {
"default": null,
"title": "Default"
},
"enum": {
"anyOf": [
{
"items": {},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Enum"
},
"items": {
"anyOf": [
{
"$ref": "#/$defs/JSONSchema"
},
{
"type": "null"
}
],
"default": null
},
"properties": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/$defs/JSONSchema"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Properties"
},
"additionalProperties": {
"anyOf": [
{
"$ref": "#/$defs/JSONSchema"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Additionalproperties"
},
"anyOf": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/JSONSchema"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Anyof"
},
"required": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Required"
}
},
"title": "JSONSchema",
"type": "object"
},
"JsonChange": {
"description": "Describes a change to data using JSON Patch format.",
"properties": {
"op": {
"enum": [
"remove",
"add",
"replace",
"move",
"test",
"copy"
],
"title": "Op",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
},
"from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "From"
},
"value": {
"$ref": "#/$defs/JsonValue",
"default": null
},
"replaced": {
"$ref": "#/$defs/JsonValue",
"default": null
}
},
"required": [
"op",
"path"
],
"title": "JsonChange",
"type": "object"
},
"JsonValue": {},
"JudgeOutput": {
"description": "Output from the alignment judge evaluation.",
"properties": {
"response": {
"title": "Response",
"type": "string"
},
"summary": {
"title": "Summary",
"type": "string"
},
"justification": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Justification"
},
"scores": {
"additionalProperties": {
"type": "integer"
},
"title": "Scores",
"type": "object"
},
"score_descriptions": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Score Descriptions"
}
},
"required": [
"response",
"summary",
"scores"
],
"title": "JudgeOutput",
"type": "object"
},
"Reset": {
"description": "Edit that resets the transcript to the initial state.",
"properties": {
"operation": {
"const": "reset",
"default": "reset",
"title": "Operation",
"type": "string"
},
"new_messages": {
"items": {
"discriminator": {
"mapping": {
"assistant": "#/$defs/ChatMessageAssistant",
"system": "#/$defs/ChatMessageSystem",
"tool": "#/$defs/ChatMessageTool",
"user": "#/$defs/ChatMessageUser"
},
"propertyName": "role"
},
"oneOf": [
{
"$ref": "#/$defs/ChatMessageSystem"
},
{
"$ref": "#/$defs/ChatMessageUser"
},
{
"$ref": "#/$defs/ChatMessageAssistant"
},
{
"$ref": "#/$defs/ChatMessageTool"
}
]
},
"title": "New Messages",
"type": "array"
}
},
"title": "Reset",
"type": "object"
},
"Rollback": {
"description": "Edit that rolls back the transcript count messages.",
"properties": {
"operation": {
"const": "rollback",
"default": "rollback",
"title": "Operation",
"type": "string"
},
"count": {
"minimum": 0,
"title": "Count",
"type": "integer"
},
"to_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "To Id"
}
},
"required": [
"count"
],
"title": "Rollback",
"type": "object"
},
"ToolCall": {
"properties": {
"id": {
"title": "Id",
"type": "string"
},
"function": {
"title": "Function",
"type": "string"
},
"arguments": {
"additionalProperties": true,
"title": "Arguments",
"type": "object"
},
"internal": {
"anyOf": [
{
"$ref": "#/$defs/JsonValue"
},
{
"type": "null"
}
],
"default": null
},
"parse_error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Parse Error"
},
"view": {
"anyOf": [
{
"$ref": "#/$defs/ToolCallContent"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
}
},
"required": [
"id",
"function",
"arguments"
],
"title": "ToolCall",
"type": "object"
},
"ToolCallContent": {
"description": "Content to include in tool call view.",
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"format": {
"enum": [
"text",
"markdown"
],
"title": "Format",
"type": "string"
},
"content": {
"title": "Content",
"type": "string"
}
},
"required": [
"format",
"content"
],
"title": "ToolCallContent",
"type": "object"
},
"ToolCallError": {
"properties": {
"type": {
"enum": [
"parsing",
"timeout",
"unicode_decode",
"permission",
"file_not_found",
"is_a_directory",
"limit",
"approval",
"unknown",
"output_limit"
],
"title": "Type",
"type": "string"
},
"message": {
"title": "Message",
"type": "string"
}
},
"required": [
"type",
"message"
],
"title": "ToolCallError",
"type": "object"
},
"ToolCreationEvent": {
"description": "Event that creates a tool.",
"properties": {
"type": {
"const": "tool_creation_event",
"default": "tool_creation_event",
"title": "Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Metadata"
},
"timestamp": {
"format": "date-time",
"title": "Timestamp",
"type": "string"
},
"model": {
"title": "Model",
"type": "string"
},
"tool": {
"$ref": "#/$defs/ToolDefinition"
}
},
"required": [
"model",
"tool"
],
"title": "ToolCreationEvent",
"type": "object"
},
"ToolDefinition": {
"description": "Serializable representation of a tool definition.\n\nThis holds only JSON-serializable fields. Convert to the library's\nInspect `ToolDef` with `to_inspect_tooldef()` when calling model.generate.",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
},
"parameters": {
"$ref": "#/$defs/ToolParams"
},
"parallel": {
"default": true,
"title": "Parallel",
"type": "boolean"
},
"options": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Options"
},
"viewer": {
"default": null,
"title": "Viewer"
},
"model_input": {
"default": null,
"title": "Model Input"
}
},
"required": [
"name",
"description",
"parameters"
],
"title": "ToolDefinition",
"type": "object"
},
"ToolParams": {
"description": "Description of tool parameters object in JSON Schema format.",
"properties": {
"type": {
"const": "object",
"default": "object",
"title": "Type",
"type": "string"
},
"properties": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/JSONSchema"
},
"title": "Properties"
},
"required": {
"items": {
"type": "string"
},
"title": "Required",
"type": "array"
},
"additionalProperties": {
"default": false,
"title": "Additionalproperties",
"type": "boolean"
}
},
"title": "ToolParams",
"type": "object"
},
"TranscriptEvent": {
"description": "Event that modifies a transcript.\n\nThe view field determines which transcript view(s) this event should be applied to.\nCan be a single view name or a list of view names.",
"properties": {
"type": {
"const": "transcript_event",
"default": "transcript_event",
"title": "Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Metadata"
},
"timestamp": {
"format": "date-time",
"title": "Timestamp",
"type": "string"
},
"view": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"title": "View"
},
"edit": {
"discriminator": {
"mapping": {
"add": "#/$defs/AddMessage",
"json_patch": "#/$defs/JSONPatchEdit",
"reset": "#/$defs/Reset",
"rollback": "#/$defs/Rollback"
},
"propertyName": "operation"
},
"oneOf": [
{
"$ref": "#/$defs/AddMessage"
},
{
"$ref": "#/$defs/Rollback"
},
{
"$ref": "#/$defs/Reset"
},
{
"$ref": "#/$defs/JSONPatchEdit"
}
],
"title": "Edit"
}
},
"required": [
"view",
"edit"
],
"title": "TranscriptEvent",
"type": "object"
},
"TranscriptMetadata": {
"properties": {
"transcript_id": {
"title": "Transcript Id",
"type": "string"
},
"auditor_model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Auditor Model"
},
"target_model": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Target Model"
},
"created_at": {
"format": "date-time",
"title": "Created At",
"type": "string"
},
"updated_at": {
"format": "date-time",
"title": "Updated At",
"type": "string"
},
"version": {
"const": "v3.0",
"default": "v3.0",
"title": "Version",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"tags": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"title": "Tags"
},
"judge_output": {
"anyOf": [
{
"$ref": "#/$defs/JudgeOutput"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"transcript_id",
"created_at",
"updated_at"
],
"title": "TranscriptMetadata",
"type": "object"
},
"UrlCitation": {
"description": "A citation that refers to a URL.",
"properties": {
"cited_text": {
"anyOf": [
{
"type": "string"
},
{
"additionalItems": false,
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"maxItems": 2,
"minItems": 2,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Cited Text"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"internal": {
"anyOf": [
{
"additionalProperties": {
"$ref": "#/$defs/JsonValue"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Internal"
},
"type": {
"const": "url",
"default": "url",
"title": "Type",
"type": "string"
},
"url": {
"title": "Url",
"type": "string"
}
},
"required": [
"url"
],
"title": "UrlCitation",
"type": "object"
}
},
"properties": {
"metadata": {
"$ref": "#/$defs/TranscriptMetadata"
},
"events": {
"items": {
"discriminator": {
"mapping": {
"decision_event": "#/$defs/DecisionEvent",
"info_event": "#/$defs/InfoEvent",
"tool_creation_event": "#/$defs/ToolCreationEvent",
"transcript_event": "#/$defs/TranscriptEvent"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/$defs/TranscriptEvent"
},
{
"$ref": "#/$defs/ToolCreationEvent"
},
{
"$ref": "#/$defs/InfoEvent"
},
{
"$ref": "#/$defs/DecisionEvent"
}
]
},
"title": "Events",
"type": "array"
},
"messages": {
"items": {},
"title": "Messages",
"type": "array"
},
"target_messages": {
"items": {},
"title": "Target Messages",
"type": "array"
}
},
"required": [
"metadata"
],
"title": "Transcript",
"type": "object"
}