sessions
Chat
sessions
Chat
Initiates a chat session.
Parameters: developer (Developer): The developer associated with the chat session. session_id (UUID): The unique identifier of the chat session. chat_input (ChatInput): The chat input data. background_tasks (BackgroundTasks): The background tasks to run. x_custom_api_key (Optional[str]): The custom API key.
Returns: ChatResponse: The chat response.
POST
/
sessions
/
{session_id}
/
chat
Authorizations
Headers
Path Parameters
Query Parameters
Body
application/json
Available options:
user
, assistant
, system
, tool
Available options:
key
, type
, cursor_position
, mouse_move
, left_click
, right_click
, middle_click
, double_click
, screenshot
Available options:
str_replace
, insert
, view
, undo_edit
Allowed value:
"function"
Required range:
-2 < x < 2
Required range:
0 < x < 2
Required range:
x > 1
Required range:
0 < x < 1
Maximum length:
120
Required range:
-2 < x < 2
Required range:
0 < x < 2
Available options:
text
, json_object
Required range:
-1 < x < 1000
Required range:
0 < x < 5
Available options:
auto
, none
Maximum length:
40
Available options:
function
, integration
, system
, api_call
, computer_20241022
, text_editor_20241022
, bash_20241022
API call definition
Available options:
GET
, POST
, PUT
, DELETE
, PATCH
, HEAD
, OPTIONS
, CONNECT
, TRACE
Minimum length:
1
Anthropic new tools
Required range:
x > 400
Required range:
1 < x < 10
Required range:
x > 600
Allowed value:
"computer_20241022"
System definition
Available options:
create
, update
, patch
, create_or_update
, embed
, change_status
, search
, chat
, history
, delete
, get
, list
Available options:
agent
, user
, task
, execution
, doc
, session
, job
Available options:
tool
, doc
, execution
, transition
Required range:
0 < x < 1
Response
201 - application/json
The message generated by the model
Available options:
user
, assistant
, system
, tool
Available options:
key
, type
, cursor_position
, mouse_move
, left_click
, right_click
, middle_click
, double_click
, screenshot
Available options:
str_replace
, insert
, view
, undo_edit
Allowed value:
"function"
Available options:
stop
, length
, content_filter
, tool_calls
Available options:
key
, type
, cursor_position
, mouse_move
, left_click
, right_click
, middle_click
, double_click
, screenshot
Available options:
str_replace
, insert
, view
, undo_edit
Allowed value:
"function"