forked from phoenix-oss/llama-stack-mirror
See https://github.com/meta-llama/llama-stack/issues/827 for the broader design. Third part: - we need to make `tool_runtime.rag_tool.query_context()` and `tool_runtime.rag_tool.insert_documents()` methods work smoothly with complete type safety. To that end, we introduce a sub-resource path `tool-runtime/rag-tool/` and make changes to the resolver to make things work. - the PR updates the agents implementation to directly call these typed APIs for memory accesses rather than going through the complex, untyped "invoke_tool" API. the code looks much nicer and simpler (expectedly.) - there are a number of hacks in the server resolver implementation still, we will live with some and fix some Note that we must make sure the client SDKs are able to handle this subresource complexity also. Stainless has support for subresources, so this should be possible but beware. ## Test Plan Our RAG test is sad (doesn't actually test for actual RAG output) but I verified that the implementation works. I will work on fixing the RAG test afterwards. ```bash pytest -s -v tests/agents/test_agents.py -k "rag and together" --safety-shield=meta-llama/Llama-Guard-3-8B ```
10007 lines
366 KiB
HTML
10007 lines
366 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>OpenAPI specification</title>
|
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
</style>
|
|
<script defer="defer" src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
|
|
<script defer="defer">
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
spec = {
|
|
"openapi": "3.1.0",
|
|
"info": {
|
|
"title": "Llama Stack Specification",
|
|
"version": "v1",
|
|
"description": "This is the specification of the Llama Stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models."
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://any-hosted-llama-stack.com"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/v1/datasetio/rows": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PaginatedRowsResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"DatasetIO"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "dataset_id",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "rows_in_page",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
{
|
|
"name": "page_token",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "filter_condition",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"DatasetIO"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AppendRowsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/batch-inference/chat-completion": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/BatchChatCompletionResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"BatchInference (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/BatchChatCompletionRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/batch-inference/completion": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/BatchCompletionResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"BatchInference (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/BatchCompletionRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/post-training/job/cancel": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"PostTraining (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CancelTrainingJobRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/inference/chat-completion": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Chat completion response. **OR** SSE-stream of these events.",
|
|
"content": {
|
|
"text/event-stream": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/ChatCompletionResponse"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ChatCompletionResponseStreamChunk"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inference"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ChatCompletionRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/inference/completion": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "Completion response. **OR** streamed completion response.",
|
|
"content": {
|
|
"text/event-stream": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/CompletionResponse"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/CompletionResponseStreamChunk"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inference"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CompletionRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/agents": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AgentCreateResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateAgentRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/agents/{agent_id}/session": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AgentSessionCreateResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateAgentSessionRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/agents/{agent_id}/session/{session_id}/turn": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "A single turn in an interaction with an Agentic System. **OR** streamed agent turn completion response.",
|
|
"content": {
|
|
"text/event-stream": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Turn"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnResponseStreamChunk"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "session_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateAgentTurnRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/agents/{agent_id}": {
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/agents/{agent_id}/session/{session_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Session"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "session_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "turn_ids",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "session_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/inference/embeddings": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/EmbeddingsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inference"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/EmbeddingsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/eval/tasks/{task_id}/evaluations": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/EvaluateResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Eval"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "task_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/EvaluateRowsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/agents/{agent_id}/session/{session_id}/turn/{turn_id}/step/{step_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AgentStepResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "session_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "turn_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "step_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/agents/{agent_id}/session/{session_id}/turn/{turn_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Turn"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Agents"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "agent_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "session_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "turn_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/datasets/{dataset_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Dataset"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Datasets"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "dataset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Datasets"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "dataset_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/eval-tasks/{eval_task_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/EvalTask"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"EvalTasks"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "eval_task_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/models/{model_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Model"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Models"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "model_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Models"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "model_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/scoring-functions/{scoring_fn_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/ScoringFn"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ScoringFunctions"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "scoring_fn_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/shields/{identifier}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/Shield"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Shields"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "identifier",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/telemetry/traces/{trace_id}/spans/{span_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Span"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "trace_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "span_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/telemetry/spans/{span_id}/tree": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/QuerySpanTreeResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "span_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "attributes_to_return",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "max_depth",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/tools/{tool_name}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Tool"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolGroups"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "tool_name",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/toolgroups/{toolgroup_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ToolGroup"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolGroups"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "toolgroup_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolGroups"
|
|
],
|
|
"summary": "Unregister a tool group",
|
|
"parameters": [
|
|
{
|
|
"name": "toolgroup_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/telemetry/traces/{trace_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Trace"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "trace_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/post-training/job/artifacts": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/PostTrainingJobArtifactsResponse"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"PostTraining (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "job_uuid",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/post-training/job/status": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/PostTrainingJobStatusResponse"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"PostTraining (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "job_uuid",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/post-training/jobs": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListPostTrainingJobsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"PostTraining (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/vector-dbs/{vector_db_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/VectorDB"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"VectorDBs"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "vector_db_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"VectorDBs"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "vector_db_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/health": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HealthInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inspect"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/vector-io/insert": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"VectorIO"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/InsertChunksRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/tool-runtime/rag-tool/insert-documents": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolRuntime"
|
|
],
|
|
"summary": "Index documents so they can be used by the RAG system",
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/InsertDocumentsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/tool-runtime/invoke": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ToolInvocationResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolRuntime"
|
|
],
|
|
"summary": "Run a tool with the given arguments",
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/InvokeToolRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/eval/tasks/{task_id}/jobs/{job_id}": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/JobStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Eval"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "task_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Eval"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "task_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/eval/tasks/{task_id}/jobs/{job_id}/result": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/EvaluateResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Eval"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "job_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "task_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/datasets": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListDatasetsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Datasets"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Datasets"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterDatasetRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/eval-tasks": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListEvalTasksResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"EvalTasks"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"EvalTasks"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterEvalTaskRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/models": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListModelsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Models"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Model"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Models"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterModelRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/inspect/providers": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListProvidersResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inspect"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/inspect/routes": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListRoutesResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inspect"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/tool-runtime/list-tools": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/jsonl": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ToolDef"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolRuntime"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "tool_group_id",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "mcp_endpoint",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"$ref": "#/components/schemas/URL"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/scoring-functions": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListScoringFunctionsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ScoringFunctions"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"ScoringFunctions"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterScoringFunctionRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/shields": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListShieldsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Shields"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Shield"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Shields"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterShieldRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/toolgroups": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListToolGroupsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolGroups"
|
|
],
|
|
"summary": "List tool groups with optional provider",
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolGroups"
|
|
],
|
|
"summary": "Register a tool group",
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterToolGroupRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/tools": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListToolsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolGroups"
|
|
],
|
|
"summary": "List tools with optional tool group",
|
|
"parameters": [
|
|
{
|
|
"name": "toolgroup_id",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/vector-dbs": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListVectorDBsResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"VectorDBs"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/VectorDB"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"VectorDBs"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterVectorDbRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/telemetry/events": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/LogEventRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/post-training/preference-optimize": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PostTrainingJob"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"PostTraining (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PreferenceOptimizeRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/vector-io/query": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/QueryChunksResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"VectorIO"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/QueryChunksRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/tool-runtime/rag-tool/query-context": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RAGQueryResult"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"ToolRuntime"
|
|
],
|
|
"summary": "Query the RAG system for context; typically invoked by the agent",
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/QueryContextRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/telemetry/spans": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/QuerySpansResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "attribute_filters",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/QueryCondition"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "attributes_to_return",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "max_depth",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/telemetry/traces": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/QueryTracesResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "attribute_filters",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/QueryCondition"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
{
|
|
"name": "order_by",
|
|
"in": "query",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/v1/eval/tasks/{task_id}/jobs": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/Job"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Eval"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "task_id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RunEvalRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/safety/run-shield": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RunShieldResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Safety"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RunShieldRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/telemetry/spans/export": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
},
|
|
"tags": [
|
|
"Telemetry"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SaveSpansToDatasetRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/scoring/score": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ScoreResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Scoring"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ScoreRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/scoring/score-batch": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ScoreBatchResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Scoring"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ScoreBatchRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/post-training/supervised-fine-tune": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PostTrainingJob"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"PostTraining (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SupervisedFineTuneRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/synthetic-data-generation/generate": {
|
|
"post": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SyntheticDataGenerationResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"SyntheticDataGeneration (Coming Soon)"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SyntheticDataGenerateRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
}
|
|
},
|
|
"/v1/version": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/VersionInfo"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
"Inspect"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "X-LlamaStack-Provider-Data",
|
|
"in": "header",
|
|
"description": "JSON-encoded provider data which will be made available to the adapter servicing the API",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "X-LlamaStack-Client-Version",
|
|
"in": "header",
|
|
"description": "Version of the client making the request. This is used to ensure that the client and server are compatible.",
|
|
"required": false,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
|
|
"components": {
|
|
"schemas": {
|
|
"AppendRowsRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"dataset_id",
|
|
"rows"
|
|
]
|
|
},
|
|
"BuiltinTool": {
|
|
"type": "string",
|
|
"enum": [
|
|
"brave_search",
|
|
"wolfram_alpha",
|
|
"photogen",
|
|
"code_interpreter"
|
|
]
|
|
},
|
|
"CompletionMessage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"role": {
|
|
"type": "string",
|
|
"const": "assistant",
|
|
"default": "assistant"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"stop_reason": {
|
|
"$ref": "#/components/schemas/StopReason"
|
|
},
|
|
"tool_calls": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolCall"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"role",
|
|
"content",
|
|
"stop_reason",
|
|
"tool_calls"
|
|
]
|
|
},
|
|
"GreedySamplingStrategy": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "greedy",
|
|
"default": "greedy"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"ImageContentItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"$ref": "#/components/schemas/URL"
|
|
},
|
|
"data": {
|
|
"type": "string",
|
|
"contentEncoding": "base64"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "image",
|
|
"default": "image"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"InterleavedContent": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"InterleavedContentItem": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/ImageContentItem"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/TextContentItem"
|
|
}
|
|
]
|
|
},
|
|
"Message": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/UserMessage"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/SystemMessage"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolResponseMessage"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/CompletionMessage"
|
|
}
|
|
]
|
|
},
|
|
"SamplingParams": {
|
|
"type": "object",
|
|
"properties": {
|
|
"strategy": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/GreedySamplingStrategy"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/TopPSamplingStrategy"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/TopKSamplingStrategy"
|
|
}
|
|
]
|
|
},
|
|
"max_tokens": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"repetition_penalty": {
|
|
"type": "number",
|
|
"default": 1.0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"strategy"
|
|
]
|
|
},
|
|
"StopReason": {
|
|
"type": "string",
|
|
"enum": [
|
|
"end_of_turn",
|
|
"end_of_message",
|
|
"out_of_tokens"
|
|
]
|
|
},
|
|
"SystemMessage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"role": {
|
|
"type": "string",
|
|
"const": "system",
|
|
"default": "system"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"role",
|
|
"content"
|
|
]
|
|
},
|
|
"TextContentItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "text",
|
|
"default": "text"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"text"
|
|
]
|
|
},
|
|
"ToolCall": {
|
|
"type": "object",
|
|
"properties": {
|
|
"call_id": {
|
|
"type": "string"
|
|
},
|
|
"tool_name": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BuiltinTool"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"arguments": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"call_id",
|
|
"tool_name",
|
|
"arguments"
|
|
]
|
|
},
|
|
"ToolChoice": {
|
|
"type": "string",
|
|
"enum": [
|
|
"auto",
|
|
"required"
|
|
]
|
|
},
|
|
"ToolDefinition": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tool_name": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BuiltinTool"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"parameters": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/ToolParamDefinition"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"tool_name"
|
|
]
|
|
},
|
|
"ToolParamDefinition": {
|
|
"type": "object",
|
|
"properties": {
|
|
"param_type": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"default": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"param_type"
|
|
]
|
|
},
|
|
"ToolPromptFormat": {
|
|
"type": "string",
|
|
"enum": [
|
|
"json",
|
|
"function_tag",
|
|
"python_list"
|
|
],
|
|
"title": "This Enum refers to the prompt format for calling custom / zero shot tools",
|
|
"description": "`json` --\n Refers to the json format for calling tools.\n The json format takes the form like\n {\n \"type\": \"function\",\n \"function\" : {\n \"name\": \"function_name\",\n \"description\": \"function_description\",\n \"parameters\": {...}\n }\n }\n\n`function_tag` --\n This is an example of how you could define\n your own user defined format for making tool calls.\n The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\nThe detailed prompts for each of these formats are added to llama cli"
|
|
},
|
|
"ToolResponseMessage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"role": {
|
|
"type": "string",
|
|
"const": "tool",
|
|
"default": "tool"
|
|
},
|
|
"call_id": {
|
|
"type": "string"
|
|
},
|
|
"tool_name": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BuiltinTool"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"role",
|
|
"call_id",
|
|
"tool_name",
|
|
"content"
|
|
]
|
|
},
|
|
"TopKSamplingStrategy": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "top_k",
|
|
"default": "top_k"
|
|
},
|
|
"top_k": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"top_k"
|
|
]
|
|
},
|
|
"TopPSamplingStrategy": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "top_p",
|
|
"default": "top_p"
|
|
},
|
|
"temperature": {
|
|
"type": "number"
|
|
},
|
|
"top_p": {
|
|
"type": "number",
|
|
"default": 0.95
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"URL": {
|
|
"type": "object",
|
|
"properties": {
|
|
"uri": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"uri"
|
|
]
|
|
},
|
|
"UserMessage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"role": {
|
|
"type": "string",
|
|
"const": "user",
|
|
"default": "user"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"context": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"role",
|
|
"content"
|
|
]
|
|
},
|
|
"BatchChatCompletionRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"messages_batch": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Message"
|
|
}
|
|
}
|
|
},
|
|
"sampling_params": {
|
|
"$ref": "#/components/schemas/SamplingParams"
|
|
},
|
|
"tools": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolDefinition"
|
|
}
|
|
},
|
|
"tool_choice": {
|
|
"$ref": "#/components/schemas/ToolChoice"
|
|
},
|
|
"tool_prompt_format": {
|
|
"$ref": "#/components/schemas/ToolPromptFormat"
|
|
},
|
|
"logprobs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"top_k": {
|
|
"type": "integer",
|
|
"default": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model",
|
|
"messages_batch"
|
|
]
|
|
},
|
|
"BatchChatCompletionResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"completion_message_batch": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/CompletionMessage"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"completion_message_batch"
|
|
]
|
|
},
|
|
"BatchCompletionRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"content_batch": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"sampling_params": {
|
|
"$ref": "#/components/schemas/SamplingParams"
|
|
},
|
|
"logprobs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"top_k": {
|
|
"type": "integer",
|
|
"default": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model",
|
|
"content_batch"
|
|
]
|
|
},
|
|
"BatchCompletionResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"completion_message_batch": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/CompletionMessage"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"completion_message_batch"
|
|
]
|
|
},
|
|
"CancelTrainingJobRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid"
|
|
]
|
|
},
|
|
"ResponseFormat": {
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "json_schema",
|
|
"default": "json_schema"
|
|
},
|
|
"json_schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"json_schema"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "grammar",
|
|
"default": "grammar"
|
|
},
|
|
"bnf": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"bnf"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"ChatCompletionRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Message"
|
|
}
|
|
},
|
|
"sampling_params": {
|
|
"$ref": "#/components/schemas/SamplingParams"
|
|
},
|
|
"tools": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolDefinition"
|
|
}
|
|
},
|
|
"tool_choice": {
|
|
"$ref": "#/components/schemas/ToolChoice"
|
|
},
|
|
"tool_prompt_format": {
|
|
"$ref": "#/components/schemas/ToolPromptFormat"
|
|
},
|
|
"response_format": {
|
|
"$ref": "#/components/schemas/ResponseFormat"
|
|
},
|
|
"stream": {
|
|
"type": "boolean"
|
|
},
|
|
"logprobs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"top_k": {
|
|
"type": "integer",
|
|
"default": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model_id",
|
|
"messages"
|
|
]
|
|
},
|
|
"ChatCompletionResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"completion_message": {
|
|
"$ref": "#/components/schemas/CompletionMessage"
|
|
},
|
|
"logprobs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/TokenLogProbs"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"completion_message"
|
|
],
|
|
"title": "Chat completion response."
|
|
},
|
|
"ChatCompletionResponseEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_type": {
|
|
"$ref": "#/components/schemas/ChatCompletionResponseEventType"
|
|
},
|
|
"delta": {
|
|
"$ref": "#/components/schemas/ContentDelta"
|
|
},
|
|
"logprobs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/TokenLogProbs"
|
|
}
|
|
},
|
|
"stop_reason": {
|
|
"$ref": "#/components/schemas/StopReason"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event_type",
|
|
"delta"
|
|
],
|
|
"title": "Chat completion response event."
|
|
},
|
|
"ChatCompletionResponseEventType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"start",
|
|
"complete",
|
|
"progress"
|
|
]
|
|
},
|
|
"ChatCompletionResponseStreamChunk": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event": {
|
|
"$ref": "#/components/schemas/ChatCompletionResponseEvent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event"
|
|
],
|
|
"title": "SSE-stream of these events."
|
|
},
|
|
"ContentDelta": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/TextDelta"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ImageDelta"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolCallDelta"
|
|
}
|
|
]
|
|
},
|
|
"ImageDelta": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "image",
|
|
"default": "image"
|
|
},
|
|
"data": {
|
|
"type": "string",
|
|
"contentEncoding": "base64"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"data"
|
|
]
|
|
},
|
|
"TextDelta": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "text",
|
|
"default": "text"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"text"
|
|
]
|
|
},
|
|
"TokenLogProbs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"logprobs_by_token": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"logprobs_by_token"
|
|
]
|
|
},
|
|
"ToolCallDelta": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "tool_call",
|
|
"default": "tool_call"
|
|
},
|
|
"content": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolCall"
|
|
}
|
|
]
|
|
},
|
|
"parse_status": {
|
|
"$ref": "#/components/schemas/ToolCallParseStatus"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"content",
|
|
"parse_status"
|
|
]
|
|
},
|
|
"ToolCallParseStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"started",
|
|
"in_progress",
|
|
"failed",
|
|
"succeeded"
|
|
]
|
|
},
|
|
"CompletionRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model_id": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"sampling_params": {
|
|
"$ref": "#/components/schemas/SamplingParams"
|
|
},
|
|
"response_format": {
|
|
"$ref": "#/components/schemas/ResponseFormat"
|
|
},
|
|
"stream": {
|
|
"type": "boolean"
|
|
},
|
|
"logprobs": {
|
|
"type": "object",
|
|
"properties": {
|
|
"top_k": {
|
|
"type": "integer",
|
|
"default": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model_id",
|
|
"content"
|
|
]
|
|
},
|
|
"CompletionResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"stop_reason": {
|
|
"$ref": "#/components/schemas/StopReason"
|
|
},
|
|
"logprobs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/TokenLogProbs"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content",
|
|
"stop_reason"
|
|
],
|
|
"title": "Completion response."
|
|
},
|
|
"CompletionResponseStreamChunk": {
|
|
"type": "object",
|
|
"properties": {
|
|
"delta": {
|
|
"type": "string"
|
|
},
|
|
"stop_reason": {
|
|
"$ref": "#/components/schemas/StopReason"
|
|
},
|
|
"logprobs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/TokenLogProbs"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"delta"
|
|
],
|
|
"title": "streamed completion response."
|
|
},
|
|
"AgentConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sampling_params": {
|
|
"$ref": "#/components/schemas/SamplingParams"
|
|
},
|
|
"input_shields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"output_shields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"toolgroups": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/AgentTool"
|
|
}
|
|
},
|
|
"client_tools": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolDef"
|
|
}
|
|
},
|
|
"tool_choice": {
|
|
"$ref": "#/components/schemas/ToolChoice",
|
|
"default": "auto"
|
|
},
|
|
"tool_prompt_format": {
|
|
"$ref": "#/components/schemas/ToolPromptFormat",
|
|
"default": "json"
|
|
},
|
|
"max_infer_iters": {
|
|
"type": "integer",
|
|
"default": 10
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"instructions": {
|
|
"type": "string"
|
|
},
|
|
"enable_session_persistence": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"max_infer_iters",
|
|
"model",
|
|
"instructions",
|
|
"enable_session_persistence"
|
|
]
|
|
},
|
|
"AgentTool": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"args"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"ToolDef": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"parameters": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolParameter"
|
|
}
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"ToolParameter": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"parameter_type": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"default": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"parameter_type",
|
|
"description",
|
|
"required"
|
|
]
|
|
},
|
|
"CreateAgentRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"agent_config": {
|
|
"$ref": "#/components/schemas/AgentConfig"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"agent_config"
|
|
]
|
|
},
|
|
"AgentCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"agent_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"agent_id"
|
|
]
|
|
},
|
|
"CreateAgentSessionRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"session_name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"session_name"
|
|
]
|
|
},
|
|
"AgentSessionCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"session_id"
|
|
]
|
|
},
|
|
"CreateAgentTurnRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/UserMessage"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolResponseMessage"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"stream": {
|
|
"type": "boolean"
|
|
},
|
|
"documents": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
}
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/URL"
|
|
}
|
|
]
|
|
},
|
|
"mime_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content",
|
|
"mime_type"
|
|
]
|
|
}
|
|
},
|
|
"toolgroups": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/AgentTool"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"messages"
|
|
]
|
|
},
|
|
"AgentTurnResponseEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"payload": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnResponseStepStartPayload"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnResponseStepProgressPayload"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnResponseStepCompletePayload"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnResponseTurnStartPayload"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnResponseTurnCompletePayload"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"payload"
|
|
],
|
|
"title": "Streamed agent execution response."
|
|
},
|
|
"AgentTurnResponseStepCompletePayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_type": {
|
|
"type": "string",
|
|
"const": "step_complete",
|
|
"default": "step_complete"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"inference",
|
|
"tool_execution",
|
|
"shield_call",
|
|
"memory_retrieval"
|
|
]
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"step_details": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/InferenceStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolExecutionStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ShieldCallStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/MemoryRetrievalStep"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event_type",
|
|
"step_type",
|
|
"step_id",
|
|
"step_details"
|
|
]
|
|
},
|
|
"AgentTurnResponseStepProgressPayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_type": {
|
|
"type": "string",
|
|
"const": "step_progress",
|
|
"default": "step_progress"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"inference",
|
|
"tool_execution",
|
|
"shield_call",
|
|
"memory_retrieval"
|
|
]
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"delta": {
|
|
"$ref": "#/components/schemas/ContentDelta"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event_type",
|
|
"step_type",
|
|
"step_id",
|
|
"delta"
|
|
]
|
|
},
|
|
"AgentTurnResponseStepStartPayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_type": {
|
|
"type": "string",
|
|
"const": "step_start",
|
|
"default": "step_start"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"inference",
|
|
"tool_execution",
|
|
"shield_call",
|
|
"memory_retrieval"
|
|
]
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event_type",
|
|
"step_type",
|
|
"step_id"
|
|
]
|
|
},
|
|
"AgentTurnResponseStreamChunk": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event": {
|
|
"$ref": "#/components/schemas/AgentTurnResponseEvent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event"
|
|
],
|
|
"title": "streamed agent turn completion response."
|
|
},
|
|
"AgentTurnResponseTurnCompletePayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_type": {
|
|
"type": "string",
|
|
"const": "turn_complete",
|
|
"default": "turn_complete"
|
|
},
|
|
"turn": {
|
|
"$ref": "#/components/schemas/Turn"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event_type",
|
|
"turn"
|
|
]
|
|
},
|
|
"AgentTurnResponseTurnStartPayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_type": {
|
|
"type": "string",
|
|
"const": "turn_start",
|
|
"default": "turn_start"
|
|
},
|
|
"turn_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event_type",
|
|
"turn_id"
|
|
]
|
|
},
|
|
"InferenceStep": {
|
|
"type": "object",
|
|
"properties": {
|
|
"turn_id": {
|
|
"type": "string"
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"const": "inference",
|
|
"default": "inference"
|
|
},
|
|
"model_response": {
|
|
"$ref": "#/components/schemas/CompletionMessage"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"turn_id",
|
|
"step_id",
|
|
"step_type",
|
|
"model_response"
|
|
]
|
|
},
|
|
"MemoryRetrievalStep": {
|
|
"type": "object",
|
|
"properties": {
|
|
"turn_id": {
|
|
"type": "string"
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"const": "memory_retrieval",
|
|
"default": "memory_retrieval"
|
|
},
|
|
"memory_bank_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"inserted_context": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"turn_id",
|
|
"step_id",
|
|
"step_type",
|
|
"memory_bank_ids",
|
|
"inserted_context"
|
|
]
|
|
},
|
|
"SafetyViolation": {
|
|
"type": "object",
|
|
"properties": {
|
|
"violation_level": {
|
|
"$ref": "#/components/schemas/ViolationLevel"
|
|
},
|
|
"user_message": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"violation_level",
|
|
"metadata"
|
|
]
|
|
},
|
|
"ShieldCallStep": {
|
|
"type": "object",
|
|
"properties": {
|
|
"turn_id": {
|
|
"type": "string"
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"const": "shield_call",
|
|
"default": "shield_call"
|
|
},
|
|
"violation": {
|
|
"$ref": "#/components/schemas/SafetyViolation"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"turn_id",
|
|
"step_id",
|
|
"step_type"
|
|
]
|
|
},
|
|
"ToolExecutionStep": {
|
|
"type": "object",
|
|
"properties": {
|
|
"turn_id": {
|
|
"type": "string"
|
|
},
|
|
"step_id": {
|
|
"type": "string"
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"step_type": {
|
|
"type": "string",
|
|
"const": "tool_execution",
|
|
"default": "tool_execution"
|
|
},
|
|
"tool_calls": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolCall"
|
|
}
|
|
},
|
|
"tool_responses": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolResponse"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"turn_id",
|
|
"step_id",
|
|
"step_type",
|
|
"tool_calls",
|
|
"tool_responses"
|
|
]
|
|
},
|
|
"ToolResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"call_id": {
|
|
"type": "string"
|
|
},
|
|
"tool_name": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BuiltinTool"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"call_id",
|
|
"tool_name",
|
|
"content"
|
|
]
|
|
},
|
|
"Turn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"turn_id": {
|
|
"type": "string"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"input_messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/UserMessage"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolResponseMessage"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"steps": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/InferenceStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolExecutionStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ShieldCallStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/MemoryRetrievalStep"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"output_message": {
|
|
"$ref": "#/components/schemas/CompletionMessage"
|
|
},
|
|
"output_attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
}
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/URL"
|
|
}
|
|
]
|
|
},
|
|
"mime_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content",
|
|
"mime_type"
|
|
]
|
|
}
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"turn_id",
|
|
"session_id",
|
|
"input_messages",
|
|
"steps",
|
|
"output_message",
|
|
"output_attachments",
|
|
"started_at"
|
|
],
|
|
"title": "A single turn in an interaction with an Agentic System."
|
|
},
|
|
"ViolationLevel": {
|
|
"type": "string",
|
|
"enum": [
|
|
"info",
|
|
"warn",
|
|
"error"
|
|
]
|
|
},
|
|
"EmbeddingsRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model_id": {
|
|
"type": "string"
|
|
},
|
|
"contents": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model_id",
|
|
"contents"
|
|
]
|
|
},
|
|
"EmbeddingsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"embeddings": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"embeddings"
|
|
]
|
|
},
|
|
"AgentCandidate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "agent",
|
|
"default": "agent"
|
|
},
|
|
"config": {
|
|
"$ref": "#/components/schemas/AgentConfig"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"config"
|
|
]
|
|
},
|
|
"AggregationFunctionType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"average",
|
|
"median",
|
|
"categorical_count",
|
|
"accuracy"
|
|
]
|
|
},
|
|
"AppEvalTaskConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "app",
|
|
"default": "app"
|
|
},
|
|
"eval_candidate": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/ModelCandidate"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentCandidate"
|
|
}
|
|
]
|
|
},
|
|
"scoring_params": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LLMAsJudgeScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/RegexParserScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BasicScoringFnParams"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"num_examples": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"eval_candidate",
|
|
"scoring_params"
|
|
]
|
|
},
|
|
"BasicScoringFnParams": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "basic",
|
|
"default": "basic"
|
|
},
|
|
"aggregation_functions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/AggregationFunctionType"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"BenchmarkEvalTaskConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "benchmark",
|
|
"default": "benchmark"
|
|
},
|
|
"eval_candidate": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/ModelCandidate"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentCandidate"
|
|
}
|
|
]
|
|
},
|
|
"num_examples": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"eval_candidate"
|
|
]
|
|
},
|
|
"LLMAsJudgeScoringFnParams": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "llm_as_judge",
|
|
"default": "llm_as_judge"
|
|
},
|
|
"judge_model": {
|
|
"type": "string"
|
|
},
|
|
"prompt_template": {
|
|
"type": "string"
|
|
},
|
|
"judge_score_regexes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"aggregation_functions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/AggregationFunctionType"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"judge_model"
|
|
]
|
|
},
|
|
"ModelCandidate": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "model",
|
|
"default": "model"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"sampling_params": {
|
|
"$ref": "#/components/schemas/SamplingParams"
|
|
},
|
|
"system_message": {
|
|
"$ref": "#/components/schemas/SystemMessage"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"model",
|
|
"sampling_params"
|
|
]
|
|
},
|
|
"RegexParserScoringFnParams": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "regex_parser",
|
|
"default": "regex_parser"
|
|
},
|
|
"parsing_regexes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"aggregation_functions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/AggregationFunctionType"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"EvaluateRowsRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"input_rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"scoring_functions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"task_config": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BenchmarkEvalTaskConfig"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AppEvalTaskConfig"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"input_rows",
|
|
"scoring_functions",
|
|
"task_config"
|
|
]
|
|
},
|
|
"EvaluateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"generations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"scores": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/ScoringResult"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"generations",
|
|
"scores"
|
|
]
|
|
},
|
|
"ScoringResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"score_rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"aggregated_results": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"score_rows",
|
|
"aggregated_results"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"session_name": {
|
|
"type": "string"
|
|
},
|
|
"turns": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Turn"
|
|
}
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"session_id",
|
|
"session_name",
|
|
"turns",
|
|
"started_at"
|
|
],
|
|
"title": "A single session of an interaction with an Agentic System."
|
|
},
|
|
"AgentStepResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"step": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/InferenceStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ToolExecutionStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ShieldCallStep"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/MemoryRetrievalStep"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"step"
|
|
]
|
|
},
|
|
"AgentTurnInputType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "agent_turn_input",
|
|
"default": "agent_turn_input"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"ArrayType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "array",
|
|
"default": "array"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"BooleanType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "boolean",
|
|
"default": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"ChatCompletionInputType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "chat_completion_input",
|
|
"default": "chat_completion_input"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"CompletionInputType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "completion_input",
|
|
"default": "completion_input"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"Dataset": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "dataset",
|
|
"default": "dataset"
|
|
},
|
|
"dataset_schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/ParamType"
|
|
}
|
|
},
|
|
"url": {
|
|
"$ref": "#/components/schemas/URL"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type",
|
|
"dataset_schema",
|
|
"url",
|
|
"metadata"
|
|
]
|
|
},
|
|
"JsonType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "json",
|
|
"default": "json"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"NumberType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "number",
|
|
"default": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"ObjectType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "object",
|
|
"default": "object"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"ParamType": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/StringType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/NumberType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BooleanType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ArrayType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ObjectType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/JsonType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/UnionType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/ChatCompletionInputType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/CompletionInputType"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AgentTurnInputType"
|
|
}
|
|
]
|
|
},
|
|
"StringType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "string",
|
|
"default": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"UnionType": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "union",
|
|
"default": "union"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
]
|
|
},
|
|
"EvalTask": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "eval_task",
|
|
"default": "eval_task"
|
|
},
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"scoring_functions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type",
|
|
"dataset_id",
|
|
"scoring_functions",
|
|
"metadata"
|
|
]
|
|
},
|
|
"Model": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "model",
|
|
"default": "model"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"model_type": {
|
|
"$ref": "#/components/schemas/ModelType",
|
|
"default": "llm"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type",
|
|
"metadata",
|
|
"model_type"
|
|
]
|
|
},
|
|
"ModelType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"llm",
|
|
"embedding"
|
|
]
|
|
},
|
|
"PaginatedRowsResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"total_count": {
|
|
"type": "integer"
|
|
},
|
|
"next_page_token": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"rows",
|
|
"total_count"
|
|
]
|
|
},
|
|
"ScoringFn": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "scoring_function",
|
|
"default": "scoring_function"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"return_type": {
|
|
"$ref": "#/components/schemas/ParamType"
|
|
},
|
|
"params": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LLMAsJudgeScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/RegexParserScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BasicScoringFnParams"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type",
|
|
"metadata",
|
|
"return_type"
|
|
]
|
|
},
|
|
"Shield": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "shield",
|
|
"default": "shield"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type"
|
|
],
|
|
"title": "A safety shield resource that can be used to check content"
|
|
},
|
|
"Span": {
|
|
"type": "object",
|
|
"properties": {
|
|
"span_id": {
|
|
"type": "string"
|
|
},
|
|
"trace_id": {
|
|
"type": "string"
|
|
},
|
|
"parent_span_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"start_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"end_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"attributes": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"span_id",
|
|
"trace_id",
|
|
"name",
|
|
"start_time"
|
|
]
|
|
},
|
|
"SpanStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"ok",
|
|
"error"
|
|
]
|
|
},
|
|
"SpanWithStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"span_id": {
|
|
"type": "string"
|
|
},
|
|
"trace_id": {
|
|
"type": "string"
|
|
},
|
|
"parent_span_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"start_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"end_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"attributes": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": {
|
|
"$ref": "#/components/schemas/SpanStatus"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"span_id",
|
|
"trace_id",
|
|
"name",
|
|
"start_time"
|
|
]
|
|
},
|
|
"QuerySpanTreeResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/SpanWithStatus"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"Tool": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "tool",
|
|
"default": "tool"
|
|
},
|
|
"toolgroup_id": {
|
|
"type": "string"
|
|
},
|
|
"tool_host": {
|
|
"$ref": "#/components/schemas/ToolHost"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"parameters": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolParameter"
|
|
}
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type",
|
|
"toolgroup_id",
|
|
"tool_host",
|
|
"description",
|
|
"parameters"
|
|
]
|
|
},
|
|
"ToolHost": {
|
|
"type": "string",
|
|
"enum": [
|
|
"distribution",
|
|
"client",
|
|
"model_context_protocol"
|
|
]
|
|
},
|
|
"ToolGroup": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "tool_group",
|
|
"default": "tool_group"
|
|
},
|
|
"mcp_endpoint": {
|
|
"$ref": "#/components/schemas/URL"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type"
|
|
]
|
|
},
|
|
"Trace": {
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_id": {
|
|
"type": "string"
|
|
},
|
|
"root_span_id": {
|
|
"type": "string"
|
|
},
|
|
"start_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"end_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"trace_id",
|
|
"root_span_id",
|
|
"start_time"
|
|
]
|
|
},
|
|
"Checkpoint": {
|
|
"description": "Checkpoint created during training runs"
|
|
},
|
|
"PostTrainingJobArtifactsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
},
|
|
"checkpoints": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Checkpoint"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid",
|
|
"checkpoints"
|
|
],
|
|
"title": "Artifacts of a finetuning job."
|
|
},
|
|
"JobStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"completed",
|
|
"in_progress",
|
|
"failed",
|
|
"scheduled"
|
|
]
|
|
},
|
|
"PostTrainingJobStatusResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"$ref": "#/components/schemas/JobStatus"
|
|
},
|
|
"scheduled_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"started_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"completed_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"resources_allocated": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"checkpoints": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Checkpoint"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid",
|
|
"status",
|
|
"checkpoints"
|
|
],
|
|
"title": "Status of a finetuning job."
|
|
},
|
|
"ListPostTrainingJobsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"VectorDB": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identifier": {
|
|
"type": "string"
|
|
},
|
|
"provider_resource_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "vector_db",
|
|
"default": "vector_db"
|
|
},
|
|
"embedding_model": {
|
|
"type": "string"
|
|
},
|
|
"embedding_dimension": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"identifier",
|
|
"provider_resource_id",
|
|
"provider_id",
|
|
"type",
|
|
"embedding_model",
|
|
"embedding_dimension"
|
|
]
|
|
},
|
|
"HealthInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"status"
|
|
]
|
|
},
|
|
"InsertChunksRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"vector_db_id": {
|
|
"type": "string"
|
|
},
|
|
"chunks": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content",
|
|
"metadata"
|
|
]
|
|
}
|
|
},
|
|
"ttl_seconds": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"vector_db_id",
|
|
"chunks"
|
|
]
|
|
},
|
|
"RAGDocument": {
|
|
"type": "object",
|
|
"properties": {
|
|
"document_id": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/InterleavedContentItem"
|
|
}
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/URL"
|
|
}
|
|
]
|
|
},
|
|
"mime_type": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"document_id",
|
|
"content",
|
|
"metadata"
|
|
]
|
|
},
|
|
"InsertDocumentsRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"documents": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/RAGDocument"
|
|
}
|
|
},
|
|
"vector_db_id": {
|
|
"type": "string"
|
|
},
|
|
"chunk_size_in_tokens": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"documents",
|
|
"vector_db_id",
|
|
"chunk_size_in_tokens"
|
|
]
|
|
},
|
|
"InvokeToolRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tool_name": {
|
|
"type": "string"
|
|
},
|
|
"kwargs": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"tool_name",
|
|
"kwargs"
|
|
]
|
|
},
|
|
"ToolInvocationResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"error_message": {
|
|
"type": "string"
|
|
},
|
|
"error_code": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content"
|
|
]
|
|
},
|
|
"ListDatasetsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Dataset"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListEvalTasksResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/EvalTask"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListModelsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Model"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ProviderInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"api": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"api",
|
|
"provider_id",
|
|
"provider_type"
|
|
]
|
|
},
|
|
"ListProvidersResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ProviderInfo"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"RouteInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"route": {
|
|
"type": "string"
|
|
},
|
|
"method": {
|
|
"type": "string"
|
|
},
|
|
"provider_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"route",
|
|
"method",
|
|
"provider_types"
|
|
]
|
|
},
|
|
"ListRoutesResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/RouteInfo"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListScoringFunctionsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ScoringFn"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListShieldsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Shield"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListToolGroupsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolGroup"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListToolsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Tool"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"ListVectorDBsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/VectorDB"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"LogSeverity": {
|
|
"type": "string",
|
|
"enum": [
|
|
"verbose",
|
|
"debug",
|
|
"info",
|
|
"warn",
|
|
"error",
|
|
"critical"
|
|
]
|
|
},
|
|
"MetricEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_id": {
|
|
"type": "string"
|
|
},
|
|
"span_id": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"attributes": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "metric",
|
|
"default": "metric"
|
|
},
|
|
"metric": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"oneOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
]
|
|
},
|
|
"unit": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"trace_id",
|
|
"span_id",
|
|
"timestamp",
|
|
"type",
|
|
"metric",
|
|
"value",
|
|
"unit"
|
|
]
|
|
},
|
|
"SpanEndPayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "span_end",
|
|
"default": "span_end"
|
|
},
|
|
"status": {
|
|
"$ref": "#/components/schemas/SpanStatus"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"status"
|
|
]
|
|
},
|
|
"SpanStartPayload": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "span_start",
|
|
"default": "span_start"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"parent_span_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"name"
|
|
]
|
|
},
|
|
"StructuredLogEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_id": {
|
|
"type": "string"
|
|
},
|
|
"span_id": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"attributes": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "structured_log",
|
|
"default": "structured_log"
|
|
},
|
|
"payload": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/SpanStartPayload"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/SpanEndPayload"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"trace_id",
|
|
"span_id",
|
|
"timestamp",
|
|
"type",
|
|
"payload"
|
|
]
|
|
},
|
|
"UnstructuredLogEvent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_id": {
|
|
"type": "string"
|
|
},
|
|
"span_id": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"attributes": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"const": "unstructured_log",
|
|
"default": "unstructured_log"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"severity": {
|
|
"$ref": "#/components/schemas/LogSeverity"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"trace_id",
|
|
"span_id",
|
|
"timestamp",
|
|
"type",
|
|
"message",
|
|
"severity"
|
|
]
|
|
},
|
|
"LogEventRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/UnstructuredLogEvent"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/MetricEvent"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/StructuredLogEvent"
|
|
}
|
|
]
|
|
},
|
|
"ttl_seconds": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"event",
|
|
"ttl_seconds"
|
|
]
|
|
},
|
|
"DPOAlignmentConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"reward_scale": {
|
|
"type": "number"
|
|
},
|
|
"reward_clip": {
|
|
"type": "number"
|
|
},
|
|
"epsilon": {
|
|
"type": "number"
|
|
},
|
|
"gamma": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"reward_scale",
|
|
"reward_clip",
|
|
"epsilon",
|
|
"gamma"
|
|
]
|
|
},
|
|
"DataConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"batch_size": {
|
|
"type": "integer"
|
|
},
|
|
"shuffle": {
|
|
"type": "boolean"
|
|
},
|
|
"data_format": {
|
|
"$ref": "#/components/schemas/DatasetFormat"
|
|
},
|
|
"validation_dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"packed": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"train_on_input": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"dataset_id",
|
|
"batch_size",
|
|
"shuffle",
|
|
"data_format"
|
|
]
|
|
},
|
|
"DatasetFormat": {
|
|
"type": "string",
|
|
"enum": [
|
|
"instruct",
|
|
"dialog"
|
|
]
|
|
},
|
|
"EfficiencyConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enable_activation_checkpointing": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"enable_activation_offloading": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"memory_efficient_fsdp_wrap": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"fsdp_cpu_offload": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"OptimizerConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"optimizer_type": {
|
|
"$ref": "#/components/schemas/OptimizerType"
|
|
},
|
|
"lr": {
|
|
"type": "number"
|
|
},
|
|
"weight_decay": {
|
|
"type": "number"
|
|
},
|
|
"num_warmup_steps": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"optimizer_type",
|
|
"lr",
|
|
"weight_decay",
|
|
"num_warmup_steps"
|
|
]
|
|
},
|
|
"OptimizerType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"adam",
|
|
"adamw",
|
|
"sgd"
|
|
]
|
|
},
|
|
"TrainingConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"n_epochs": {
|
|
"type": "integer"
|
|
},
|
|
"max_steps_per_epoch": {
|
|
"type": "integer"
|
|
},
|
|
"gradient_accumulation_steps": {
|
|
"type": "integer"
|
|
},
|
|
"max_validation_steps": {
|
|
"type": "integer"
|
|
},
|
|
"data_config": {
|
|
"$ref": "#/components/schemas/DataConfig"
|
|
},
|
|
"optimizer_config": {
|
|
"$ref": "#/components/schemas/OptimizerConfig"
|
|
},
|
|
"efficiency_config": {
|
|
"$ref": "#/components/schemas/EfficiencyConfig"
|
|
},
|
|
"dtype": {
|
|
"type": "string",
|
|
"default": "bf16"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"n_epochs",
|
|
"max_steps_per_epoch",
|
|
"gradient_accumulation_steps",
|
|
"max_validation_steps",
|
|
"data_config",
|
|
"optimizer_config"
|
|
]
|
|
},
|
|
"PreferenceOptimizeRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
},
|
|
"finetuned_model": {
|
|
"type": "string"
|
|
},
|
|
"algorithm_config": {
|
|
"$ref": "#/components/schemas/DPOAlignmentConfig"
|
|
},
|
|
"training_config": {
|
|
"$ref": "#/components/schemas/TrainingConfig"
|
|
},
|
|
"hyperparam_search_config": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"logger_config": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid",
|
|
"finetuned_model",
|
|
"algorithm_config",
|
|
"training_config",
|
|
"hyperparam_search_config",
|
|
"logger_config"
|
|
]
|
|
},
|
|
"PostTrainingJob": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid"
|
|
]
|
|
},
|
|
"QueryChunksRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"vector_db_id": {
|
|
"type": "string"
|
|
},
|
|
"query": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"vector_db_id",
|
|
"query"
|
|
]
|
|
},
|
|
"QueryChunksResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"chunks": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content",
|
|
"metadata"
|
|
]
|
|
}
|
|
},
|
|
"scores": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"chunks",
|
|
"scores"
|
|
]
|
|
},
|
|
"DefaultRAGQueryGeneratorConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "default",
|
|
"default": "default"
|
|
},
|
|
"separator": {
|
|
"type": "string",
|
|
"default": " "
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"separator"
|
|
]
|
|
},
|
|
"LLMRAGQueryGeneratorConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "llm",
|
|
"default": "llm"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"model",
|
|
"template"
|
|
]
|
|
},
|
|
"RAGQueryConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"query_generator_config": {
|
|
"$ref": "#/components/schemas/RAGQueryGeneratorConfig"
|
|
},
|
|
"max_tokens_in_context": {
|
|
"type": "integer",
|
|
"default": 4096
|
|
},
|
|
"max_chunks": {
|
|
"type": "integer",
|
|
"default": 5
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"query_generator_config",
|
|
"max_tokens_in_context",
|
|
"max_chunks"
|
|
]
|
|
},
|
|
"RAGQueryGeneratorConfig": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/DefaultRAGQueryGeneratorConfig"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/LLMRAGQueryGeneratorConfig"
|
|
}
|
|
]
|
|
},
|
|
"QueryContextRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
},
|
|
"query_config": {
|
|
"$ref": "#/components/schemas/RAGQueryConfig"
|
|
},
|
|
"vector_db_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"content",
|
|
"query_config",
|
|
"vector_db_ids"
|
|
]
|
|
},
|
|
"RAGQueryResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"$ref": "#/components/schemas/InterleavedContent"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"QueryCondition": {
|
|
"type": "object",
|
|
"properties": {
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"op": {
|
|
"$ref": "#/components/schemas/QueryConditionOp"
|
|
},
|
|
"value": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"key",
|
|
"op",
|
|
"value"
|
|
]
|
|
},
|
|
"QueryConditionOp": {
|
|
"type": "string",
|
|
"enum": [
|
|
"eq",
|
|
"ne",
|
|
"gt",
|
|
"lt"
|
|
]
|
|
},
|
|
"QuerySpansResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Span"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"QueryTracesResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Trace"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data"
|
|
]
|
|
},
|
|
"RegisterDatasetRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"dataset_schema": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/ParamType"
|
|
}
|
|
},
|
|
"url": {
|
|
"$ref": "#/components/schemas/URL"
|
|
},
|
|
"provider_dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"dataset_id",
|
|
"dataset_schema",
|
|
"url"
|
|
]
|
|
},
|
|
"RegisterEvalTaskRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"eval_task_id": {
|
|
"type": "string"
|
|
},
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"scoring_functions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"provider_eval_task_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"eval_task_id",
|
|
"dataset_id",
|
|
"scoring_functions"
|
|
]
|
|
},
|
|
"RegisterModelRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"model_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_model_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"model_type": {
|
|
"$ref": "#/components/schemas/ModelType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"model_id"
|
|
]
|
|
},
|
|
"RegisterScoringFunctionRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scoring_fn_id": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"return_type": {
|
|
"$ref": "#/components/schemas/ParamType"
|
|
},
|
|
"provider_scoring_fn_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LLMAsJudgeScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/RegexParserScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BasicScoringFnParams"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"scoring_fn_id",
|
|
"description",
|
|
"return_type"
|
|
]
|
|
},
|
|
"RegisterShieldRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"shield_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_shield_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"shield_id"
|
|
]
|
|
},
|
|
"RegisterToolGroupRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"toolgroup_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"mcp_endpoint": {
|
|
"$ref": "#/components/schemas/URL"
|
|
},
|
|
"args": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"toolgroup_id",
|
|
"provider_id"
|
|
]
|
|
},
|
|
"RegisterVectorDbRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"vector_db_id": {
|
|
"type": "string"
|
|
},
|
|
"embedding_model": {
|
|
"type": "string"
|
|
},
|
|
"embedding_dimension": {
|
|
"type": "integer"
|
|
},
|
|
"provider_id": {
|
|
"type": "string"
|
|
},
|
|
"provider_vector_db_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"vector_db_id",
|
|
"embedding_model"
|
|
]
|
|
},
|
|
"RunEvalRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"task_config": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/BenchmarkEvalTaskConfig"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/AppEvalTaskConfig"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"task_config"
|
|
]
|
|
},
|
|
"Job": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_id"
|
|
]
|
|
},
|
|
"RunShieldRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"shield_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Message"
|
|
}
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"shield_id",
|
|
"messages",
|
|
"params"
|
|
]
|
|
},
|
|
"RunShieldResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"violation": {
|
|
"$ref": "#/components/schemas/SafetyViolation"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"SaveSpansToDatasetRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"attribute_filters": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/QueryCondition"
|
|
}
|
|
},
|
|
"attributes_to_save": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"max_depth": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"attribute_filters",
|
|
"attributes_to_save",
|
|
"dataset_id"
|
|
]
|
|
},
|
|
"ScoreRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"input_rows": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"scoring_functions": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LLMAsJudgeScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/RegexParserScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BasicScoringFnParams"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"input_rows",
|
|
"scoring_functions"
|
|
]
|
|
},
|
|
"ScoreResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"results": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/ScoringResult"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"results"
|
|
]
|
|
},
|
|
"ScoreBatchRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"scoring_functions": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LLMAsJudgeScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/RegexParserScoringFnParams"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/BasicScoringFnParams"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"save_results_dataset": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"dataset_id",
|
|
"scoring_functions",
|
|
"save_results_dataset"
|
|
]
|
|
},
|
|
"ScoreBatchResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_id": {
|
|
"type": "string"
|
|
},
|
|
"results": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/components/schemas/ScoringResult"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"results"
|
|
]
|
|
},
|
|
"LoraFinetuningConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "LoRA",
|
|
"default": "LoRA"
|
|
},
|
|
"lora_attn_modules": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"apply_lora_to_mlp": {
|
|
"type": "boolean"
|
|
},
|
|
"apply_lora_to_output": {
|
|
"type": "boolean"
|
|
},
|
|
"rank": {
|
|
"type": "integer"
|
|
},
|
|
"alpha": {
|
|
"type": "integer"
|
|
},
|
|
"use_dora": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"quantize_base": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"lora_attn_modules",
|
|
"apply_lora_to_mlp",
|
|
"apply_lora_to_output",
|
|
"rank",
|
|
"alpha"
|
|
]
|
|
},
|
|
"QATFinetuningConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"const": "QAT",
|
|
"default": "QAT"
|
|
},
|
|
"quantizer_name": {
|
|
"type": "string"
|
|
},
|
|
"group_size": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"quantizer_name",
|
|
"group_size"
|
|
]
|
|
},
|
|
"SupervisedFineTuneRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_uuid": {
|
|
"type": "string"
|
|
},
|
|
"training_config": {
|
|
"$ref": "#/components/schemas/TrainingConfig"
|
|
},
|
|
"hyperparam_search_config": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"logger_config": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"checkpoint_dir": {
|
|
"type": "string"
|
|
},
|
|
"algorithm_config": {
|
|
"oneOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LoraFinetuningConfig"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/QATFinetuningConfig"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"job_uuid",
|
|
"training_config",
|
|
"hyperparam_search_config",
|
|
"logger_config",
|
|
"model"
|
|
]
|
|
},
|
|
"SyntheticDataGenerateRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"dialogs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/Message"
|
|
}
|
|
},
|
|
"filtering_function": {
|
|
"type": "string",
|
|
"enum": [
|
|
"none",
|
|
"random",
|
|
"top_k",
|
|
"top_p",
|
|
"top_k_top_p",
|
|
"sigmoid"
|
|
],
|
|
"title": "The type of filtering function."
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"dialogs",
|
|
"filtering_function"
|
|
]
|
|
},
|
|
"SyntheticDataGenerationResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"synthetic_data": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"statistics": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "object"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"synthetic_data"
|
|
],
|
|
"title": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold."
|
|
},
|
|
"VersionInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"version"
|
|
]
|
|
}
|
|
},
|
|
"responses": {}
|
|
},
|
|
"security": [
|
|
{
|
|
"Default": []
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "AgentCandidate",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentCandidate\" />"
|
|
},
|
|
{
|
|
"name": "AgentConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentConfig\" />"
|
|
},
|
|
{
|
|
"name": "AgentCreateResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentCreateResponse\" />"
|
|
},
|
|
{
|
|
"name": "AgentSessionCreateResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentSessionCreateResponse\" />"
|
|
},
|
|
{
|
|
"name": "AgentStepResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentStepResponse\" />"
|
|
},
|
|
{
|
|
"name": "AgentTool",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTool\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnInputType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnInputType\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseEvent",
|
|
"description": "Streamed agent execution response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseEvent\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseStepCompletePayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepCompletePayload\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseStepProgressPayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepProgressPayload\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseStepStartPayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStepStartPayload\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseStreamChunk",
|
|
"description": "streamed agent turn completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseStreamChunk\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseTurnCompletePayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseTurnCompletePayload\" />"
|
|
},
|
|
{
|
|
"name": "AgentTurnResponseTurnStartPayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgentTurnResponseTurnStartPayload\" />"
|
|
},
|
|
{
|
|
"name": "Agents"
|
|
},
|
|
{
|
|
"name": "AggregationFunctionType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AggregationFunctionType\" />"
|
|
},
|
|
{
|
|
"name": "AppEvalTaskConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AppEvalTaskConfig\" />"
|
|
},
|
|
{
|
|
"name": "AppendRowsRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AppendRowsRequest\" />"
|
|
},
|
|
{
|
|
"name": "ArrayType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ArrayType\" />"
|
|
},
|
|
{
|
|
"name": "BasicScoringFnParams",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BasicScoringFnParams\" />"
|
|
},
|
|
{
|
|
"name": "BatchChatCompletionRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionRequest\" />"
|
|
},
|
|
{
|
|
"name": "BatchChatCompletionResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchChatCompletionResponse\" />"
|
|
},
|
|
{
|
|
"name": "BatchCompletionRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionRequest\" />"
|
|
},
|
|
{
|
|
"name": "BatchCompletionResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
|
|
},
|
|
{
|
|
"name": "BatchInference (Coming Soon)"
|
|
},
|
|
{
|
|
"name": "BenchmarkEvalTaskConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BenchmarkEvalTaskConfig\" />"
|
|
},
|
|
{
|
|
"name": "BooleanType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BooleanType\" />"
|
|
},
|
|
{
|
|
"name": "BuiltinTool",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"
|
|
},
|
|
{
|
|
"name": "CancelTrainingJobRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelTrainingJobRequest\" />"
|
|
},
|
|
{
|
|
"name": "ChatCompletionInputType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionInputType\" />"
|
|
},
|
|
{
|
|
"name": "ChatCompletionRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />"
|
|
},
|
|
{
|
|
"name": "ChatCompletionResponse",
|
|
"description": "Chat completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponse\" />"
|
|
},
|
|
{
|
|
"name": "ChatCompletionResponseEvent",
|
|
"description": "Chat completion response event.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEvent\" />"
|
|
},
|
|
{
|
|
"name": "ChatCompletionResponseEventType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseEventType\" />"
|
|
},
|
|
{
|
|
"name": "ChatCompletionResponseStreamChunk",
|
|
"description": "SSE-stream of these events.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionResponseStreamChunk\" />"
|
|
},
|
|
{
|
|
"name": "Checkpoint",
|
|
"description": "Checkpoint created during training runs\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Checkpoint\" />"
|
|
},
|
|
{
|
|
"name": "CompletionInputType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionInputType\" />"
|
|
},
|
|
{
|
|
"name": "CompletionMessage",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionMessage\" />"
|
|
},
|
|
{
|
|
"name": "CompletionRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CompletionRequest\" />"
|
|
},
|
|
{
|
|
"name": "CompletionResponse",
|
|
"description": "Completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponse\" />"
|
|
},
|
|
{
|
|
"name": "CompletionResponseStreamChunk",
|
|
"description": "streamed completion response.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/CompletionResponseStreamChunk\" />"
|
|
},
|
|
{
|
|
"name": "ContentDelta",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ContentDelta\" />"
|
|
},
|
|
{
|
|
"name": "CreateAgentRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentRequest\" />"
|
|
},
|
|
{
|
|
"name": "CreateAgentSessionRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentSessionRequest\" />"
|
|
},
|
|
{
|
|
"name": "CreateAgentTurnRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgentTurnRequest\" />"
|
|
},
|
|
{
|
|
"name": "DPOAlignmentConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DPOAlignmentConfig\" />"
|
|
},
|
|
{
|
|
"name": "DataConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DataConfig\" />"
|
|
},
|
|
{
|
|
"name": "Dataset",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Dataset\" />"
|
|
},
|
|
{
|
|
"name": "DatasetFormat",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DatasetFormat\" />"
|
|
},
|
|
{
|
|
"name": "DatasetIO"
|
|
},
|
|
{
|
|
"name": "Datasets"
|
|
},
|
|
{
|
|
"name": "DefaultRAGQueryGeneratorConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DefaultRAGQueryGeneratorConfig\" />"
|
|
},
|
|
{
|
|
"name": "EfficiencyConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EfficiencyConfig\" />"
|
|
},
|
|
{
|
|
"name": "EmbeddingsRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />"
|
|
},
|
|
{
|
|
"name": "EmbeddingsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsResponse\" />"
|
|
},
|
|
{
|
|
"name": "Eval"
|
|
},
|
|
{
|
|
"name": "EvalTask",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvalTask\" />"
|
|
},
|
|
{
|
|
"name": "EvalTasks"
|
|
},
|
|
{
|
|
"name": "EvaluateResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateResponse\" />"
|
|
},
|
|
{
|
|
"name": "EvaluateRowsRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateRowsRequest\" />"
|
|
},
|
|
{
|
|
"name": "GreedySamplingStrategy",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/GreedySamplingStrategy\" />"
|
|
},
|
|
{
|
|
"name": "HealthInfo",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/HealthInfo\" />"
|
|
},
|
|
{
|
|
"name": "ImageContentItem",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ImageContentItem\" />"
|
|
},
|
|
{
|
|
"name": "ImageDelta",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ImageDelta\" />"
|
|
},
|
|
{
|
|
"name": "Inference"
|
|
},
|
|
{
|
|
"name": "InferenceStep",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InferenceStep\" />"
|
|
},
|
|
{
|
|
"name": "InsertChunksRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertChunksRequest\" />"
|
|
},
|
|
{
|
|
"name": "InsertDocumentsRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />"
|
|
},
|
|
{
|
|
"name": "Inspect"
|
|
},
|
|
{
|
|
"name": "InterleavedContent",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InterleavedContent\" />"
|
|
},
|
|
{
|
|
"name": "InterleavedContentItem",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InterleavedContentItem\" />"
|
|
},
|
|
{
|
|
"name": "InvokeToolRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InvokeToolRequest\" />"
|
|
},
|
|
{
|
|
"name": "Job",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Job\" />"
|
|
},
|
|
{
|
|
"name": "JobStatus",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/JobStatus\" />"
|
|
},
|
|
{
|
|
"name": "JsonType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/JsonType\" />"
|
|
},
|
|
{
|
|
"name": "LLMAsJudgeScoringFnParams",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LLMAsJudgeScoringFnParams\" />"
|
|
},
|
|
{
|
|
"name": "LLMRAGQueryGeneratorConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LLMRAGQueryGeneratorConfig\" />"
|
|
},
|
|
{
|
|
"name": "ListDatasetsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListDatasetsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListEvalTasksResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListEvalTasksResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListModelsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListModelsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListPostTrainingJobsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListPostTrainingJobsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListProvidersResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListProvidersResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListRoutesResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListRoutesResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListScoringFunctionsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListScoringFunctionsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListShieldsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListShieldsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListToolGroupsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListToolGroupsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListToolsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListToolsResponse\" />"
|
|
},
|
|
{
|
|
"name": "ListVectorDBsResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListVectorDBsResponse\" />"
|
|
},
|
|
{
|
|
"name": "LogEventRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogEventRequest\" />"
|
|
},
|
|
{
|
|
"name": "LogSeverity",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogSeverity\" />"
|
|
},
|
|
{
|
|
"name": "LoraFinetuningConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LoraFinetuningConfig\" />"
|
|
},
|
|
{
|
|
"name": "MemoryRetrievalStep",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryRetrievalStep\" />"
|
|
},
|
|
{
|
|
"name": "Message",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Message\" />"
|
|
},
|
|
{
|
|
"name": "MetricEvent",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/MetricEvent\" />"
|
|
},
|
|
{
|
|
"name": "Model",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Model\" />"
|
|
},
|
|
{
|
|
"name": "ModelCandidate",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ModelCandidate\" />"
|
|
},
|
|
{
|
|
"name": "ModelType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ModelType\" />"
|
|
},
|
|
{
|
|
"name": "Models"
|
|
},
|
|
{
|
|
"name": "NumberType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/NumberType\" />"
|
|
},
|
|
{
|
|
"name": "ObjectType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ObjectType\" />"
|
|
},
|
|
{
|
|
"name": "OptimizerConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/OptimizerConfig\" />"
|
|
},
|
|
{
|
|
"name": "OptimizerType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/OptimizerType\" />"
|
|
},
|
|
{
|
|
"name": "PaginatedRowsResult",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PaginatedRowsResult\" />"
|
|
},
|
|
{
|
|
"name": "ParamType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ParamType\" />"
|
|
},
|
|
{
|
|
"name": "PostTraining (Coming Soon)"
|
|
},
|
|
{
|
|
"name": "PostTrainingJob",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJob\" />"
|
|
},
|
|
{
|
|
"name": "PostTrainingJobArtifactsResponse",
|
|
"description": "Artifacts of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobArtifactsResponse\" />"
|
|
},
|
|
{
|
|
"name": "PostTrainingJobStatusResponse",
|
|
"description": "Status of a finetuning job.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/PostTrainingJobStatusResponse\" />"
|
|
},
|
|
{
|
|
"name": "PreferenceOptimizeRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/PreferenceOptimizeRequest\" />"
|
|
},
|
|
{
|
|
"name": "ProviderInfo",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ProviderInfo\" />"
|
|
},
|
|
{
|
|
"name": "QATFinetuningConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QATFinetuningConfig\" />"
|
|
},
|
|
{
|
|
"name": "QueryChunksRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryChunksRequest\" />"
|
|
},
|
|
{
|
|
"name": "QueryChunksResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryChunksResponse\" />"
|
|
},
|
|
{
|
|
"name": "QueryCondition",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryCondition\" />"
|
|
},
|
|
{
|
|
"name": "QueryConditionOp",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryConditionOp\" />"
|
|
},
|
|
{
|
|
"name": "QueryContextRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryContextRequest\" />"
|
|
},
|
|
{
|
|
"name": "QuerySpanTreeResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QuerySpanTreeResponse\" />"
|
|
},
|
|
{
|
|
"name": "QuerySpansResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QuerySpansResponse\" />"
|
|
},
|
|
{
|
|
"name": "QueryTracesResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/QueryTracesResponse\" />"
|
|
},
|
|
{
|
|
"name": "RAGDocument",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RAGDocument\" />"
|
|
},
|
|
{
|
|
"name": "RAGQueryConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RAGQueryConfig\" />"
|
|
},
|
|
{
|
|
"name": "RAGQueryGeneratorConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RAGQueryGeneratorConfig\" />"
|
|
},
|
|
{
|
|
"name": "RAGQueryResult",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RAGQueryResult\" />"
|
|
},
|
|
{
|
|
"name": "RegexParserScoringFnParams",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegexParserScoringFnParams\" />"
|
|
},
|
|
{
|
|
"name": "RegisterDatasetRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterDatasetRequest\" />"
|
|
},
|
|
{
|
|
"name": "RegisterEvalTaskRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterEvalTaskRequest\" />"
|
|
},
|
|
{
|
|
"name": "RegisterModelRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterModelRequest\" />"
|
|
},
|
|
{
|
|
"name": "RegisterScoringFunctionRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterScoringFunctionRequest\" />"
|
|
},
|
|
{
|
|
"name": "RegisterShieldRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterShieldRequest\" />"
|
|
},
|
|
{
|
|
"name": "RegisterToolGroupRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterToolGroupRequest\" />"
|
|
},
|
|
{
|
|
"name": "RegisterVectorDbRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RegisterVectorDbRequest\" />"
|
|
},
|
|
{
|
|
"name": "ResponseFormat",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ResponseFormat\" />"
|
|
},
|
|
{
|
|
"name": "RouteInfo",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RouteInfo\" />"
|
|
},
|
|
{
|
|
"name": "RunEvalRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunEvalRequest\" />"
|
|
},
|
|
{
|
|
"name": "RunShieldRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldRequest\" />"
|
|
},
|
|
{
|
|
"name": "RunShieldResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/RunShieldResponse\" />"
|
|
},
|
|
{
|
|
"name": "Safety"
|
|
},
|
|
{
|
|
"name": "SafetyViolation",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SafetyViolation\" />"
|
|
},
|
|
{
|
|
"name": "SamplingParams",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SamplingParams\" />"
|
|
},
|
|
{
|
|
"name": "SaveSpansToDatasetRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SaveSpansToDatasetRequest\" />"
|
|
},
|
|
{
|
|
"name": "ScoreBatchRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoreBatchRequest\" />"
|
|
},
|
|
{
|
|
"name": "ScoreBatchResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoreBatchResponse\" />"
|
|
},
|
|
{
|
|
"name": "ScoreRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoreRequest\" />"
|
|
},
|
|
{
|
|
"name": "ScoreResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoreResponse\" />"
|
|
},
|
|
{
|
|
"name": "Scoring"
|
|
},
|
|
{
|
|
"name": "ScoringFn",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoringFn\" />"
|
|
},
|
|
{
|
|
"name": "ScoringFunctions"
|
|
},
|
|
{
|
|
"name": "ScoringResult",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ScoringResult\" />"
|
|
},
|
|
{
|
|
"name": "Session",
|
|
"description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />"
|
|
},
|
|
{
|
|
"name": "Shield",
|
|
"description": "A safety shield resource that can be used to check content\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Shield\" />"
|
|
},
|
|
{
|
|
"name": "ShieldCallStep",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ShieldCallStep\" />"
|
|
},
|
|
{
|
|
"name": "Shields"
|
|
},
|
|
{
|
|
"name": "Span",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Span\" />"
|
|
},
|
|
{
|
|
"name": "SpanEndPayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanEndPayload\" />"
|
|
},
|
|
{
|
|
"name": "SpanStartPayload",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStartPayload\" />"
|
|
},
|
|
{
|
|
"name": "SpanStatus",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanStatus\" />"
|
|
},
|
|
{
|
|
"name": "SpanWithStatus",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SpanWithStatus\" />"
|
|
},
|
|
{
|
|
"name": "StopReason",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/StopReason\" />"
|
|
},
|
|
{
|
|
"name": "StringType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/StringType\" />"
|
|
},
|
|
{
|
|
"name": "StructuredLogEvent",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/StructuredLogEvent\" />"
|
|
},
|
|
{
|
|
"name": "SupervisedFineTuneRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SupervisedFineTuneRequest\" />"
|
|
},
|
|
{
|
|
"name": "SyntheticDataGenerateRequest",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerateRequest\" />"
|
|
},
|
|
{
|
|
"name": "SyntheticDataGeneration (Coming Soon)"
|
|
},
|
|
{
|
|
"name": "SyntheticDataGenerationResponse",
|
|
"description": "Response from the synthetic data generation. Batch of (prompt, response, score) tuples that pass the threshold.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/SyntheticDataGenerationResponse\" />"
|
|
},
|
|
{
|
|
"name": "SystemMessage",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/SystemMessage\" />"
|
|
},
|
|
{
|
|
"name": "Telemetry"
|
|
},
|
|
{
|
|
"name": "TextContentItem",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TextContentItem\" />"
|
|
},
|
|
{
|
|
"name": "TextDelta",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TextDelta\" />"
|
|
},
|
|
{
|
|
"name": "TokenLogProbs",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TokenLogProbs\" />"
|
|
},
|
|
{
|
|
"name": "Tool",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Tool\" />"
|
|
},
|
|
{
|
|
"name": "ToolCall",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCall\" />"
|
|
},
|
|
{
|
|
"name": "ToolCallDelta",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallDelta\" />"
|
|
},
|
|
{
|
|
"name": "ToolCallParseStatus",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolCallParseStatus\" />"
|
|
},
|
|
{
|
|
"name": "ToolChoice",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolChoice\" />"
|
|
},
|
|
{
|
|
"name": "ToolDef",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolDef\" />"
|
|
},
|
|
{
|
|
"name": "ToolDefinition",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolDefinition\" />"
|
|
},
|
|
{
|
|
"name": "ToolExecutionStep",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolExecutionStep\" />"
|
|
},
|
|
{
|
|
"name": "ToolGroup",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolGroup\" />"
|
|
},
|
|
{
|
|
"name": "ToolGroups"
|
|
},
|
|
{
|
|
"name": "ToolHost",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolHost\" />"
|
|
},
|
|
{
|
|
"name": "ToolInvocationResult",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolInvocationResult\" />"
|
|
},
|
|
{
|
|
"name": "ToolParamDefinition",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolParamDefinition\" />"
|
|
},
|
|
{
|
|
"name": "ToolParameter",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolParameter\" />"
|
|
},
|
|
{
|
|
"name": "ToolPromptFormat",
|
|
"description": "This Enum refers to the prompt format for calling custom / zero shot tools\n\n`json` --\n Refers to the json format for calling tools.\n The json format takes the form like\n {\n \"type\": \"function\",\n \"function\" : {\n \"name\": \"function_name\",\n \"description\": \"function_description\",\n \"parameters\": {...}\n }\n }\n\n`function_tag` --\n This is an example of how you could define\n your own user defined format for making tool calls.\n The function_tag format looks like this,\n <function=function_name>(parameters)</function>\n\nThe detailed prompts for each of these formats are added to llama cli\n\n<SchemaDefinition schemaRef=\"#/components/schemas/ToolPromptFormat\" />"
|
|
},
|
|
{
|
|
"name": "ToolResponse",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponse\" />"
|
|
},
|
|
{
|
|
"name": "ToolResponseMessage",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ToolResponseMessage\" />"
|
|
},
|
|
{
|
|
"name": "ToolRuntime"
|
|
},
|
|
{
|
|
"name": "TopKSamplingStrategy",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TopKSamplingStrategy\" />"
|
|
},
|
|
{
|
|
"name": "TopPSamplingStrategy",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TopPSamplingStrategy\" />"
|
|
},
|
|
{
|
|
"name": "Trace",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Trace\" />"
|
|
},
|
|
{
|
|
"name": "TrainingConfig",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TrainingConfig\" />"
|
|
},
|
|
{
|
|
"name": "Turn",
|
|
"description": "A single turn in an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Turn\" />"
|
|
},
|
|
{
|
|
"name": "URL",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/URL\" />"
|
|
},
|
|
{
|
|
"name": "UnionType",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/UnionType\" />"
|
|
},
|
|
{
|
|
"name": "UnstructuredLogEvent",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/UnstructuredLogEvent\" />"
|
|
},
|
|
{
|
|
"name": "UserMessage",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/UserMessage\" />"
|
|
},
|
|
{
|
|
"name": "VectorDB",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/VectorDB\" />"
|
|
},
|
|
{
|
|
"name": "VectorDBs"
|
|
},
|
|
{
|
|
"name": "VectorIO"
|
|
},
|
|
{
|
|
"name": "VersionInfo",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/VersionInfo\" />"
|
|
},
|
|
{
|
|
"name": "ViolationLevel",
|
|
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ViolationLevel\" />"
|
|
}
|
|
],
|
|
"x-tagGroups": [
|
|
{
|
|
"name": "Operations",
|
|
"tags": [
|
|
"Agents",
|
|
"BatchInference (Coming Soon)",
|
|
"DatasetIO",
|
|
"Datasets",
|
|
"Eval",
|
|
"EvalTasks",
|
|
"Inference",
|
|
"Inspect",
|
|
"Models",
|
|
"PostTraining (Coming Soon)",
|
|
"Safety",
|
|
"Scoring",
|
|
"ScoringFunctions",
|
|
"Shields",
|
|
"SyntheticDataGeneration (Coming Soon)",
|
|
"Telemetry",
|
|
"ToolGroups",
|
|
"ToolRuntime",
|
|
"VectorDBs",
|
|
"VectorIO"
|
|
]
|
|
},
|
|
{
|
|
"name": "Types",
|
|
"tags": [
|
|
"AgentCandidate",
|
|
"AgentConfig",
|
|
"AgentCreateResponse",
|
|
"AgentSessionCreateResponse",
|
|
"AgentStepResponse",
|
|
"AgentTool",
|
|
"AgentTurnInputType",
|
|
"AgentTurnResponseEvent",
|
|
"AgentTurnResponseStepCompletePayload",
|
|
"AgentTurnResponseStepProgressPayload",
|
|
"AgentTurnResponseStepStartPayload",
|
|
"AgentTurnResponseStreamChunk",
|
|
"AgentTurnResponseTurnCompletePayload",
|
|
"AgentTurnResponseTurnStartPayload",
|
|
"AggregationFunctionType",
|
|
"AppEvalTaskConfig",
|
|
"AppendRowsRequest",
|
|
"ArrayType",
|
|
"BasicScoringFnParams",
|
|
"BatchChatCompletionRequest",
|
|
"BatchChatCompletionResponse",
|
|
"BatchCompletionRequest",
|
|
"BatchCompletionResponse",
|
|
"BenchmarkEvalTaskConfig",
|
|
"BooleanType",
|
|
"BuiltinTool",
|
|
"CancelTrainingJobRequest",
|
|
"ChatCompletionInputType",
|
|
"ChatCompletionRequest",
|
|
"ChatCompletionResponse",
|
|
"ChatCompletionResponseEvent",
|
|
"ChatCompletionResponseEventType",
|
|
"ChatCompletionResponseStreamChunk",
|
|
"Checkpoint",
|
|
"CompletionInputType",
|
|
"CompletionMessage",
|
|
"CompletionRequest",
|
|
"CompletionResponse",
|
|
"CompletionResponseStreamChunk",
|
|
"ContentDelta",
|
|
"CreateAgentRequest",
|
|
"CreateAgentSessionRequest",
|
|
"CreateAgentTurnRequest",
|
|
"DPOAlignmentConfig",
|
|
"DataConfig",
|
|
"Dataset",
|
|
"DatasetFormat",
|
|
"DefaultRAGQueryGeneratorConfig",
|
|
"EfficiencyConfig",
|
|
"EmbeddingsRequest",
|
|
"EmbeddingsResponse",
|
|
"EvalTask",
|
|
"EvaluateResponse",
|
|
"EvaluateRowsRequest",
|
|
"GreedySamplingStrategy",
|
|
"HealthInfo",
|
|
"ImageContentItem",
|
|
"ImageDelta",
|
|
"InferenceStep",
|
|
"InsertChunksRequest",
|
|
"InsertDocumentsRequest",
|
|
"InterleavedContent",
|
|
"InterleavedContentItem",
|
|
"InvokeToolRequest",
|
|
"Job",
|
|
"JobStatus",
|
|
"JsonType",
|
|
"LLMAsJudgeScoringFnParams",
|
|
"LLMRAGQueryGeneratorConfig",
|
|
"ListDatasetsResponse",
|
|
"ListEvalTasksResponse",
|
|
"ListModelsResponse",
|
|
"ListPostTrainingJobsResponse",
|
|
"ListProvidersResponse",
|
|
"ListRoutesResponse",
|
|
"ListScoringFunctionsResponse",
|
|
"ListShieldsResponse",
|
|
"ListToolGroupsResponse",
|
|
"ListToolsResponse",
|
|
"ListVectorDBsResponse",
|
|
"LogEventRequest",
|
|
"LogSeverity",
|
|
"LoraFinetuningConfig",
|
|
"MemoryRetrievalStep",
|
|
"Message",
|
|
"MetricEvent",
|
|
"Model",
|
|
"ModelCandidate",
|
|
"ModelType",
|
|
"NumberType",
|
|
"ObjectType",
|
|
"OptimizerConfig",
|
|
"OptimizerType",
|
|
"PaginatedRowsResult",
|
|
"ParamType",
|
|
"PostTrainingJob",
|
|
"PostTrainingJobArtifactsResponse",
|
|
"PostTrainingJobStatusResponse",
|
|
"PreferenceOptimizeRequest",
|
|
"ProviderInfo",
|
|
"QATFinetuningConfig",
|
|
"QueryChunksRequest",
|
|
"QueryChunksResponse",
|
|
"QueryCondition",
|
|
"QueryConditionOp",
|
|
"QueryContextRequest",
|
|
"QuerySpanTreeResponse",
|
|
"QuerySpansResponse",
|
|
"QueryTracesResponse",
|
|
"RAGDocument",
|
|
"RAGQueryConfig",
|
|
"RAGQueryGeneratorConfig",
|
|
"RAGQueryResult",
|
|
"RegexParserScoringFnParams",
|
|
"RegisterDatasetRequest",
|
|
"RegisterEvalTaskRequest",
|
|
"RegisterModelRequest",
|
|
"RegisterScoringFunctionRequest",
|
|
"RegisterShieldRequest",
|
|
"RegisterToolGroupRequest",
|
|
"RegisterVectorDbRequest",
|
|
"ResponseFormat",
|
|
"RouteInfo",
|
|
"RunEvalRequest",
|
|
"RunShieldRequest",
|
|
"RunShieldResponse",
|
|
"SafetyViolation",
|
|
"SamplingParams",
|
|
"SaveSpansToDatasetRequest",
|
|
"ScoreBatchRequest",
|
|
"ScoreBatchResponse",
|
|
"ScoreRequest",
|
|
"ScoreResponse",
|
|
"ScoringFn",
|
|
"ScoringResult",
|
|
"Session",
|
|
"Shield",
|
|
"ShieldCallStep",
|
|
"Span",
|
|
"SpanEndPayload",
|
|
"SpanStartPayload",
|
|
"SpanStatus",
|
|
"SpanWithStatus",
|
|
"StopReason",
|
|
"StringType",
|
|
"StructuredLogEvent",
|
|
"SupervisedFineTuneRequest",
|
|
"SyntheticDataGenerateRequest",
|
|
"SyntheticDataGenerationResponse",
|
|
"SystemMessage",
|
|
"TextContentItem",
|
|
"TextDelta",
|
|
"TokenLogProbs",
|
|
"Tool",
|
|
"ToolCall",
|
|
"ToolCallDelta",
|
|
"ToolCallParseStatus",
|
|
"ToolChoice",
|
|
"ToolDef",
|
|
"ToolDefinition",
|
|
"ToolExecutionStep",
|
|
"ToolGroup",
|
|
"ToolHost",
|
|
"ToolInvocationResult",
|
|
"ToolParamDefinition",
|
|
"ToolParameter",
|
|
"ToolPromptFormat",
|
|
"ToolResponse",
|
|
"ToolResponseMessage",
|
|
"TopKSamplingStrategy",
|
|
"TopPSamplingStrategy",
|
|
"Trace",
|
|
"TrainingConfig",
|
|
"Turn",
|
|
"URL",
|
|
"UnionType",
|
|
"UnstructuredLogEvent",
|
|
"UserMessage",
|
|
"VectorDB",
|
|
"VersionInfo",
|
|
"ViolationLevel"
|
|
]
|
|
}
|
|
]
|
|
};
|
|
options = {
|
|
downloadFileName: "openapi.json",
|
|
expandResponses: "200",
|
|
expandSingleSchemaField: true,
|
|
jsonSampleExpandLevel: "all",
|
|
schemaExpansionLevel: "all",
|
|
};
|
|
element = document.getElementById("openapi-container");
|
|
Redoc.init(spec, options, element);
|
|
|
|
if (spec.info && spec.info.title) {
|
|
document.title = spec.info.title;
|
|
}
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="openapi-container"></div>
|
|
</body>
|
|
|
|
</html>
|