cURL
curl --request POST \ --url https://api.sol.com/v1/ai/integrate \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-4", "messages": [ { "role": "user", "content": "Draft an email welcoming Tara to the platform." } ], "tools": [ "create_email_draft" ], "tool_choice": "auto" }'
{ "responseId": "response-45678", "tool_calls": [ { "toolId": "tool-6789", "params": { "from_email": "noreply@sol.com", "to_email": "tara@sol.com" } } ], "status": "tools_selected" }
Integrates with an AI model (e.g., GPT-4) to generate responses and select tools in Sol.
AI response with selected tool(s)
The response is of type object.
object