Client / Python
Use the framework-neutral provider
Call the gateway without LangGraph, Agno, or the OpenAI SDK, and retain access to raw response metadata and tool-call proposals.Configure from environment
Pythonpython
from neosyntropy import NeoSyntropyProvider
provider = NeoSyntropyProvider.from_env(model="default")
result = provider.chat([
{"role": "user", "content": "Classify this request: duplicate invoice charge"}
])
print(result.content)
print(result.tool_calls)
print(result.raw.get("usage"))Choose the response surface
- invoke / ainvoke return text only.
- chat / achat return content, raw response data, and tool_calls.
- generate accepts tool definitions and a response-format descriptor shaped as {name, strict, schema}; pass the inner json_schema object, not only a raw JSON Schema.
- NEOSYNTROPY_API_URL uses the service root; the provider adds /api/v1 automatically.