From b7f5c0c72c6476002eda9c4aa991f356e881504a Mon Sep 17 00:00:00 2001 From: Donatien Thorez Date: Wed, 29 Nov 2023 22:55:01 +1100 Subject: [PATCH 1/2] Fix typo in API doc and add more documentation about how to create assistant --- API.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index 89defc77..24eccda9 100644 --- a/API.md +++ b/API.md @@ -14,7 +14,7 @@ This should look something like: ```python import requests -requests.put('http://127.0.0.1:8100/assistants', json={ +requests.post('http://127.0.0.1:8100/assistants', json={ "name": "bar", "config": {"configurable": {}}, "public": True @@ -28,6 +28,26 @@ This should return something like: b'{"assistant_id":"9c7d7e6e-654b-4eaa-b160-f19f922fc63b","name":"string","config":{"configurable":{}},"updated_at":"2023-11-20T16:24:30.520340","public":true,"user_id":"foo"}' ``` +The config parameters allows you to set the LLM used, the instructions of the assistant and also the tools used. + + +``` +{ + "name": "bar", + "config": { + "configurable": { + "agent_type": "GPT 3.5 Turbo", + "system_message": "You are a helpful assistant", + "tools": ["Wikipedia"] + }, + "public": True +} +``` +This creates an assistant with the name `"bar"`, with GPT 3.5 Turbo, with a prompt `"You are a helpful assistant"` using the Wikipedia tool , that is public. + +Available tools names can be found in the AvailableTools class in backend/packages/gizmo-agent/gizmo_agent/tools.py +Available llms can be found in GizmoAgentType in backend/packages/gizmo-agent/gizmo_agent/agent_types/__init__.py + ## Create a thread We can now create a thread. From eb376650f56d0e717e326533819a331a4cb25f65 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Thu, 30 Nov 2023 16:18:39 +0000 Subject: [PATCH 2/2] Update API.md --- API.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/API.md b/API.md index 24eccda9..5d7155d3 100644 --- a/API.md +++ b/API.md @@ -36,9 +36,10 @@ The config parameters allows you to set the LLM used, the instructions of the as "name": "bar", "config": { "configurable": { - "agent_type": "GPT 3.5 Turbo", - "system_message": "You are a helpful assistant", - "tools": ["Wikipedia"] + "type": "agent", + "type==agent/agent_type": "GPT 3.5 Turbo", + "type==agent/system_message": "You are a helpful assistant", + "type==agent/tools": ["Wikipedia"] }, "public": True }