DSPy
Run predictions using self-hosted DSPy programs
Integrate with your self-hosted DSPy programs for LLM-powered predictions. Supports Predict, Chain of Thought, and ReAct agents. DSPy is the framework for programming—not prompting—language models.
| Parameter | Type | Required | Description |
|---|
baseUrl | string | Yes | No description |
apiKey | string | No | No description |
endpoint | string | No | No description |
input | string | Yes | No description |
inputField | string | No | Name of the input field expected by the DSPy program (defaults to "text") |
context | string | No | No description |
additionalInputs | json | No | No description |
| Parameter | Type | Description |
|---|
answer | string | The main output/answer from the DSPy program |
reasoning | string | The reasoning or rationale behind the answer (if available) |
status | string | Response status from the DSPy server (success or error) |
rawOutput | json | The complete raw output from the DSPy program (result.toDict()) |
Run a Chain of Thought prediction using a self-hosted DSPy ChainOfThought program endpoint
| Parameter | Type | Required | Description |
|---|
baseUrl | string | Yes | No description |
apiKey | string | No | No description |
endpoint | string | No | No description |
question | string | Yes | No description |
context | string | No | No description |
| Parameter | Type | Description |
|---|
answer | string | The answer generated through chain of thought reasoning |
reasoning | string | The step-by-step reasoning that led to the answer |
status | string | Response status from the DSPy server (success or error) |
rawOutput | json | The complete raw output from the DSPy program (result.toDict()) |
Run a ReAct agent using a self-hosted DSPy ReAct program endpoint for multi-step reasoning and action
| Parameter | Type | Required | Description |
|---|
baseUrl | string | Yes | No description |
apiKey | string | No | No description |
endpoint | string | No | No description |
task | string | Yes | No description |
context | string | No | No description |
maxIterations | number | No | No description |
| Parameter | Type | Description |
|---|
answer | string | The final answer or result from the ReAct agent |
reasoning | string | The overall reasoning summary from the agent |
trajectory | array | The step-by-step trajectory of thoughts, actions, and observations |
↳ thought | string | The reasoning thought at this step |
↳ toolName | string | The name of the tool/action called |
↳ toolArgs | json | Arguments passed to the tool |
↳ observation | string | The observation/result from the tool execution |
status | string | Response status from the DSPy server (success or error) |
rawOutput | json | The complete raw output from the DSPy program (result.toDict()) |