@@ -59,20 +59,26 @@ Run a prediction using a self-hosted DSPy program endpoint
5959
6060### ` dspy_chain_of_thought `
6161
62+ Run a Chain of Thought prediction using a self-hosted DSPy ChainOfThought program endpoint
63+
6264#### Input
6365
6466| Parameter | Type | Required | Description |
6567| --------- | ---- | -------- | ----------- |
68+ | ` baseUrl ` | string | Yes | Base URL of the DSPy server \( e.g., https://your-dspy-server.com\) |
69+ | ` apiKey ` | string | No | API key for authentication \( if required by your server\) |
70+ | ` endpoint ` | string | No | API endpoint path \( defaults to /predict\) |
71+ | ` question ` | string | Yes | The question to answer using chain of thought reasoning |
72+ | ` context ` | string | No | Additional context to provide for answering the question |
6673
6774#### Output
6875
6976| Parameter | Type | Description |
7077| --------- | ---- | ----------- |
71- | ` answer ` | string | The answer/output from the DSPy program |
72- | ` reasoning ` | string | The reasoning or rationale behind the answer |
73- | ` trajectory ` | json | Step-by-step trajectory for ReAct \( thoughts, actions, observations\) |
74- | ` status ` | string | Response status from the DSPy server |
75- | ` rawOutput ` | json | Complete raw output from the DSPy program |
78+ | ` answer ` | string | The answer generated through chain of thought reasoning |
79+ | ` reasoning ` | string | The step-by-step reasoning that led to the answer |
80+ | ` status ` | string | Response status from the DSPy server \( success or error\) |
81+ | ` rawOutput ` | json | The complete raw output from the DSPy program \( result.toDict\(\)\) |
7682
7783### ` dspy_react `
7884
0 commit comments