Chat
Initiates a chat session.
Routes to different implementations based on feature flags:
- If auto_run_tools_chat feature flag is enabled, uses the new auto-tools implementation
- Otherwise, uses the legacy implementation
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. mock_response (Optional[str]): Mock response for testing. connection_pool: Connection pool for testing purposes.
Returns: ChatResponse or StreamingResponse: The chat response or streaming response.
Path parameters
Query parameters
Headers
Request body
Response
Successful Response
Changes
Changed in 15 of the 44 revisions of this API.9321
- ●
removed the request property
messages/items/continuerequest-property-removed
- ●
removed the optional property
anyOf[subschema #1: ChunkChatResponse]/choices/items/delta/continuefrom the response with the201statusresponse-optional-property-removed
- ●
- ○
added the new optional request property
auto_run_toolsnew-optional-request-property
- ○
added the new optional request property
recall_toolsnew-optional-request-property
- ○
- ▲
removed
ApiCallDeffrom thetools/anyOf[subschema #1]/items/api_callrequest propertyanyOflistrequest-property-any-of-removed
- ○
added
ApiCallDef-Inputto thetools/anyOf[subschema #1]/items/api_callrequest propertyanyOflistrequest-property-any-of-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
Contentfrom themessages/items/content/anyOf[subschema #3]/items/request propertyanyOflistrequest-property-any-of-removed
- ○
added
agents_api__autogen__Chat__Contentto themessages/items/content/anyOf[subschema #3]/items/request propertyanyOflistrequest-property-any-of-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
metadatanew-optional-request-property
- ○
- ○
added the new optional request property
tools/anyOf[subschema #1]/items/api_call/anyOf[subschema #1: ApiCallDef]/secretsnew-optional-request-property
- ○
- ○
added the new optional request property
tools/anyOf[subschema #1]/items/api_call/anyOf[subschema #1: ApiCallDef]/include_response_contentnew-optional-request-property
- ○
added
MailgunIntegrationDefto thetools/anyOf[subschema #1]/items/integrationrequest propertyanyOflistrequest-property-any-of-added
- ○
added
CompletionUsageto theanyOf[subschema #1: ChunkChatResponse]/usageresponse propertyanyOflist for the response status201response-property-any-of-added
- ○
added
CompletionUsageto theanyOf[subschema #2: MessageChatResponse]/usageresponse propertyanyOflist for the response status201response-property-any-of-added
- ○
removed
CompetionUsagefrom theanyOf[subschema #1: ChunkChatResponse]/usageresponse propertyanyOflist for the response status201response-property-any-of-removed
- ○
removed
CompetionUsagefrom theanyOf[subschema #2: MessageChatResponse]/usageresponse propertyanyOflist for the response status201response-property-any-of-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
request property
tools/anyOf[subschema #1]/items/integration/anyOf[subschema #21: AlgoliaIntegrationDef]/arguments/anyOf[subschema #1: AlgoliaSearchArguments]/attributes_to_retrievelist-of-types was narrowed by removing typesobjectfrom media typeapplication/jsonrequest-property-list-of-types-narrowed
- ▲
the
tools/anyOf[subschema #1]/items/integration/anyOf[subschema #21: AlgoliaIntegrationDef]/arguments/anyOf[subschema #1: AlgoliaSearchArguments]/attributes_to_retrieve/anyOf[subschema #1]/request property type/format changed fromobject/toarray/request-property-type-changed
- ▲
- ○
added
AlgoliaIntegrationDefto thetools/anyOf[subschema #1]/items/integrationrequest propertyanyOflistrequest-property-any-of-added
- ○
- ▲
added the new required request property
tools/anyOf[subschema #1]/items/integration/anyOf[subschema #2: BraveIntegrationDef]/setup/anyOf[subschema #1: BraveSearchSetup]/brave_api_keynew-required-request-property
- ●
removed the request property
tools/anyOf[subschema #1]/items/integration/anyOf[subschema #2: BraveIntegrationDef]/setup/anyOf[subschema #1: BraveSearchSetup]/api_keyrequest-property-removed
- ○
added
UnstructuredIntegrationDefto thetools/anyOf[subschema #1]/items/integrationrequest propertyanyOflistrequest-property-any-of-added
- ▲