@tuppence/agent-tools 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @tuppence/agent-tools
|
|
2
2
|
|
|
3
|
-
Tuppence's tools for agent frameworks
|
|
4
|
-
Agent SDK**
|
|
3
|
+
Tuppence's tools for agent frameworks (the **OpenAI Agents SDK**, **LangChain** and the **Claude
|
|
4
|
+
Agent SDK**), straight from Tuppence's MCP server.
|
|
5
5
|
|
|
6
6
|
There is one definition of what an agent may do with Tuppence: the MCP server's. This package
|
|
7
|
-
asks it for its tools, with your key, and hands your framework the same tools in its own shape
|
|
7
|
+
asks it for its tools, with your key, and hands your framework the same tools in its own shape,
|
|
8
8
|
so they never drift, and a restricted key's agent is offered only what the key may do.
|
|
9
9
|
|
|
10
10
|
```bash
|
|
@@ -56,7 +56,7 @@ for await (const message of query({
|
|
|
56
56
|
|
|
57
57
|
## Refusals are answers
|
|
58
58
|
|
|
59
|
-
A tool the API refuses returns the error envelope
|
|
59
|
+
A tool the API refuses returns the error envelope (`code`, `message`, `param`) as its output,
|
|
60
60
|
not an exception, so the agent can read "`amount` must be between 30 and 99999999" and try
|
|
61
61
|
again. Money-moving tools need an `idempotency_key`: the same value when retrying, and the
|
|
62
62
|
payment happens once.
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
15
15
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
16
|
-
export const VERSION = "0.1.
|
|
16
|
+
export const VERSION = "0.1.1";
|
|
17
17
|
export function resolveOptions(options = {}) {
|
|
18
18
|
const env = globalThis.process?.env ?? {};
|
|
19
19
|
const apiKey = options.apiKey ?? env.TUPPENCE_SECRET_KEY ?? env.TUPPENCE_API_KEY ?? "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuppence/agent-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Tuppence's tools for agent frameworks — the OpenAI Agents SDK, LangChain and the Claude Agent SDK — straight from its MCP server.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.tuppence.ai",
|