diff --git a/apps/docs/content/docs/en/tools/dspy.mdx b/apps/docs/content/docs/en/tools/dspy.mdx index 8a088f78f..78b7dbc6b 100644 --- a/apps/docs/content/docs/en/tools/dspy.mdx +++ b/apps/docs/content/docs/en/tools/dspy.mdx @@ -59,20 +59,26 @@ Run a prediction using a self-hosted DSPy program endpoint ### `dspy_chain_of_thought` +Run a Chain of Thought prediction using a self-hosted DSPy ChainOfThought program endpoint + #### Input | Parameter | Type | Required | Description | | --------- | ---- | -------- | ----------- | +| `baseUrl` | string | Yes | Base URL of the DSPy server \(e.g., https://your-dspy-server.com\) | +| `apiKey` | string | No | API key for authentication \(if required by your server\) | +| `endpoint` | string | No | API endpoint path \(defaults to /predict\) | +| `question` | string | Yes | The question to answer using chain of thought reasoning | +| `context` | string | No | Additional context to provide for answering the question | #### Output | Parameter | Type | Description | | --------- | ---- | ----------- | -| `answer` | string | The answer/output from the DSPy program | -| `reasoning` | string | The reasoning or rationale behind the answer | -| `trajectory` | json | Step-by-step trajectory for ReAct \(thoughts, actions, observations\) | -| `status` | string | Response status from the DSPy server | -| `rawOutput` | json | Complete raw output from the DSPy program | +| `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\(\)\) | ### `dspy_react` diff --git a/apps/sim/tools/dspy/chain-of-thought.ts b/apps/sim/tools/dspy/chain_of_thought.ts similarity index 100% rename from apps/sim/tools/dspy/chain-of-thought.ts rename to apps/sim/tools/dspy/chain_of_thought.ts