API¶
API
¶
Natural language interface for OpenAPI/Swagger APIs.
PARAMETER | DESCRIPTION |
---|---|
spec
|
OpenAPI specification as URL, file path, or dictionary.
TYPE:
|
headers
|
HTTP headers for authentication.
TYPE:
|
params
|
Query parameters for all requests.
TYPE:
|
ask
¶
Ask natural language questions and get structured responses.
PARAMETER | DESCRIPTION |
---|---|
prompt
|
Natural language question or instruction.
TYPE:
|
model
|
AI model to use (e.g., 'openai:gpt-4', 'anthropic:claude-3-5-sonnet').
TYPE:
|
context
|
Additional business context for better responses.
TYPE:
|
output_type
|
Pydantic model for structured responses.
TYPE:
|
stream
|
Show live AI reasoning in terminal.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Any
|
Response matching the requested output type. |
tools
¶
Available tool methods for API operations.
RETURNS | DESCRIPTION |
---|---|
list[callable]
|
Methods for endpoint inspection and request execution. |
instructions
¶
Generate system instructions for AI agents.
PARAMETER | DESCRIPTION |
---|---|
context
|
Additional business context to include in instructions.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
System instructions for AI interaction with this datasource. |