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_
string_ ⚠free - Free a string returned by SimpleAgents FFI.