@sonzai-labs/agents 1.0.6 → 1.0.7
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/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1596,6 +1596,14 @@ var Agents = class {
|
|
|
1596
1596
|
body
|
|
1597
1597
|
);
|
|
1598
1598
|
}
|
|
1599
|
+
// -- Tool Schemas (BYO-LLM) --
|
|
1600
|
+
/** Get tool schemas available for an agent (for BYO-LLM integrations). */
|
|
1601
|
+
async getTools(agentId) {
|
|
1602
|
+
requireNonEmpty(agentId, "agentId");
|
|
1603
|
+
return this.http.get(
|
|
1604
|
+
`/api/v1/agents/${agentId}/tools`
|
|
1605
|
+
);
|
|
1606
|
+
}
|
|
1599
1607
|
buildChatBody(options) {
|
|
1600
1608
|
const body = { messages: options.messages };
|
|
1601
1609
|
if (options.userId) body.user_id = options.userId;
|