POST
/
sessions
/
{session_id}
/
render
{
  "messages": [
    {
      "role": "user",
      "tool_call_id": "<string>",
      "content": "<string>",
      "name": "<string>",
      "continue": true,
      "tool_calls": [
        {
          "type": "function",
          "function": {
            "name": "<string>",
            "arguments": "<string>"
          },
          "integration": "<any>",
          "system": "<any>",
          "api_call": "<any>",
          "computer_20241022": {
            "action": "key",
            "text": "<string>",
            "coordinate": [
              123
            ]
          },
          "text_editor_20241022": {
            "command": "str_replace",
            "path": "<string>",
            "file_text": "<string>",
            "insert_line": 123,
            "new_str": "<string>",
            "old_str": "<string>",
            "view_range": [
              123
            ]
          },
          "bash_20241022": {
            "command": "<string>",
            "restart": false
          },
          "id": "<string>"
        }
      ]
    }
  ],
  "tools": [
    {
      "name": "<string>",
      "type": "function",
      "description": "<string>",
      "function": {
        "name": "<any>",
        "description": "<any>",
        "parameters": {}
      },
      "integration": {
        "provider": "dummy",
        "method": "<string>",
        "setup": "<any>",
        "arguments": "<any>"
      },
      "system": {
        "resource": "agent",
        "operation": "create",
        "resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "subresource": "tool",
        "arguments": {}
      },
      "api_call": {
        "method": "GET",
        "url": "<string>",
        "schema": {},
        "headers": {},
        "content": "<string>",
        "data": {},
        "files": {},
        "json": {},
        "cookies": {},
        "params": "<string>",
        "follow_redirects": true,
        "timeout": 123
      },
      "computer_20241022": {
        "type": "computer_20241022",
        "name": "computer",
        "display_width_px": 1024,
        "display_height_px": 768,
        "display_number": 1
      },
      "text_editor_20241022": {
        "type": "text_editor_20241022",
        "name": "str_replace_editor"
      },
      "bash_20241022": {
        "type": "bash_20241022",
        "name": "bash"
      }
    }
  ],
  "tool_choice": "auto",
  "docs": []
}

Authorizations

Authorization
string
header
required

Path Parameters

session_id
string
required

Body

application/json
messages
object[]
required
tools
object[] | null

Payload for creating a tool

tool_choice
Available options:
auto,
none
recall
boolean
default:true
save
boolean
default:true
model
string | null
Maximum length: 120
stream
boolean
default:false
stop
string[]
seed
integer | null
Required range: -1 <= x <= 1000
max_tokens
integer | null
Required range: x >= 1
logit_bias
object | null
response_format
object | null
agent
string | null
repetition_penalty
number | null
Required range: 0 <= x <= 2
length_penalty
number | null
Required range: 0 <= x <= 2
min_p
number | null
Required range: 0 <= x <= 1
frequency_penalty
number | null
Required range: -2 <= x <= 2
presence_penalty
number | null
Required range: -2 <= x <= 2
temperature
number | null
Required range: 0 <= x <= 5
top_p
number | null
Required range: 0 <= x <= 1

Response

200
application/json
Successful Response
messages
object[]
required
tools
object[] | null

Payload for creating a tool

tool_choice
Available options:
auto,
none
docs
object[]