cURL
curl --request POST \ --url https://api.example.com/api/v1/contexts/{context_id}/history \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "artifactId": "<string>", "parts": [ { "text": "<string>", "kind": "text", "metadata": {} } ], "description": "<string>", "extensions": [ "<string>" ], "metadata": {}, "name": "<string>" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Represents a file, data structure, or other resource generated by an agent during a task.
Represents a text segment within a message or artifact.
Show child attributes
Successful Response