Expand description
C-compatible FFI bindings for SimpleAgents.
Structs§
Functions§
- sa_
client_ ⚠free - Free a client created by
sa_client_new_from_env. - sa_
client_ ⚠new_ from_ env - Create a client from environment variables for a provider.
- sa_
complete ⚠ - Execute a completion request with a single user prompt.
- sa_
complete_ ⚠messages_ json - Execute a completion request with full message input and return a structured JSON payload.
- sa_
last_ error_ message - Get the last error message for the current thread.
- sa_
run_ ⚠email_ workflow_ yaml - Execute workflow email YAML through the Rust workflow runner and return JSON output.
- sa_
run_ ⚠workflow_ yaml - Execute workflow YAML with arbitrary workflow input JSON and return JSON output.
- sa_
run_ ⚠workflow_ yaml_ stream_ events - Execute workflow YAML and emit live workflow events to a callback while returning final output.
- sa_
run_ ⚠workflow_ yaml_ with_ events - Execute workflow YAML and include collected workflow events in the JSON output under
events. - sa_
run_ ⚠workflow_ yaml_ with_ options - Execute workflow YAML with arbitrary input JSON and optional telemetry options JSON.
- sa_
stream_ ⚠messages - Execute a message-based completion request in streaming mode and emit JSON events to a callback.
- sa_
string_ ⚠free - Free a string returned by SimpleAgents FFI.