Skip to content

Commit 0ec6da8

Browse files
mcp move tool
1 parent 8c8e36b commit 0ec6da8

File tree

99 files changed

+3860
-889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+3860
-889
lines changed
File renamed without changes.
File renamed without changes.

.codebolt/74779_output.txt

Lines changed: 448 additions & 0 deletions
Large diffs are not rendered by default.

.codebolt/chat.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.codebolt/debug.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.codebolt/merkle_tree.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"rootHash": "432471293d81271bc74d88d0a0e4428a4b4ab8aa9f2e6e10850774334e8b2b8c",
3+
"leaves": [
4+
"2621d2c68302813173b10913b6197d07ae8416396a2f8aa0a64e488cc3760c43",
5+
"ecf9116121a771be597830df649273217be987f12c2dd0c87ebf30054795d6ad"
6+
],
7+
"filesList": [
8+
{
9+
"path": ".codebolt/merkle_tree.json",
10+
"hash": "0626188b26fc0cf6989bd00cd77fc7fe145e386c6be0acc387360521e626feb8"
11+
},
12+
{
13+
"path": ".codebolt/projectState.json",
14+
"hash": "53787d2f86eb9be83094c1f8bda10f04eb81899ebc59d87089a206602baecd92"
15+
}
16+
]
17+
}

.codebolt/null.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ports": [
3+
3000
4+
]
5+
}

.codebolt/projectState.json

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,29 @@
88
"type": "leaf",
99
"data": {
1010
"views": [
11-
"Code",
12-
"0e7ba2fb-4f85-485e-a1ef-b12ef330b962",
13-
"Preview"
11+
"Code"
1412
],
1513
"activeView": "Code",
1614
"id": "1"
1715
},
18-
"size": 1536
16+
"size": 592
17+
},
18+
{
19+
"type": "leaf",
20+
"data": {
21+
"views": [
22+
"Chat"
23+
],
24+
"activeView": "Chat",
25+
"id": "2"
26+
},
27+
"size": 592
1928
}
2029
],
21-
"size": 756
30+
"size": 860
2231
},
23-
"width": 1536,
24-
"height": 756,
32+
"width": 1184,
33+
"height": 860,
2534
"orientation": "HORIZONTAL"
2635
},
2736
"panels": {
@@ -32,18 +41,11 @@
3241
"title": "Code",
3342
"renderer": "always"
3443
},
35-
"0e7ba2fb-4f85-485e-a1ef-b12ef330b962": {
36-
"id": "0e7ba2fb-4f85-485e-a1ef-b12ef330b962",
37-
"contentComponent": "Terminal",
38-
"tabComponent": "props.defaultTabComponent",
39-
"title": "Terminal",
40-
"renderer": "always"
41-
},
42-
"Preview": {
43-
"id": "Preview",
44-
"contentComponent": "Preview",
44+
"Chat": {
45+
"id": "Chat",
46+
"contentComponent": "Chat",
4547
"tabComponent": "props.defaultTabComponent",
46-
"title": "Preview",
48+
"title": "Chat",
4749
"renderer": "always"
4850
}
4951
},

.codebolt/undefined.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"ports": [
3-
3000,
4-
1123,
5-
3000
3+
3003
64
]
75
}

docs/agents/4_remixagents/1_aboutremixagents.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,44 @@
22
sidebar_label: About Remix Agents
33
---
44

5-
# About Remix Agents
5+
# Remix Agent
66

7-
Remix Agents are a type of agent that allows you to remix existing agents to create new ones.
7+
## Overview
88

9-
## How to use Remix Agents
9+
The Remix Agent is a specialized version of an existing agent designed to provide greater flexibility. It enables the modification of both the model and the MCP (Model Context Protocol) that the agent employs. This functionality is particularly beneficial in circumstances requiring real-time adjustments, negating the need for deploying a new agent version.
1010

11-
1. Go to the Remix Agents page
12-
2. Click on the agent you want to remix
13-
3. Click on the remix button
11+
## Key Features
12+
13+
- **Model Change**: Effortlessly update the model used by the agent to align with new requirements or datasets.
14+
- **MCP Adjustment**: Alter the MCP configuration to facilitate customized processing workflows.
15+
16+
## Usage
17+
18+
The Remix Agent is suitable for environments where there is a need for real-time adjustments to agent behavior. This can be due to varying processing requirements or different resource configurations.
19+
20+
21+
1. Navigate to the chat window and click on the "Create Agent" option.
22+
![How to create remix agent](../../../static/img/howtocreateremix.png)
23+
24+
2. Select the "Remix Agent" from the options available.
25+
![Click on Remix Agent](../../../static/img/selectremix.png)
26+
27+
3. Modify the settings of the agent you wish to remix according to your requirements.
28+
![Modify settings](../../../static/img/modifymodelormcps.png)
29+
30+
## Using Local MCPs
31+
32+
Remix Agents also support using local MCPs (Model Context Protocol), allowing you to leverage your own computing resources for agent execution. This feature is particularly useful for:
33+
34+
- Processing sensitive data that should not leave your environment
35+
- Reducing latency by running MCPs on local infrastructure
36+
- Developing and testing custom MCPs before deployment
37+
38+
To use a local MCP with your Remix Agent:
39+
40+
1. Ensure your local MCP service is running and properly configured
41+
2. When creating or modifying a Remix Agent, select the "Local MCP" option
42+
3. Enter the connection details for your local MCP service
43+
4. Test the connection before finalizing your agent configuration
44+
45+
Local MCPs provide enhanced control over the execution environment while maintaining the flexibility that Remix Agents offer.

docs/agents/CodeboltRegistry/AboutRegistry.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/1_api_index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ cbapicategory:
3636
- name: Git
3737
link: /docs/api/git
3838
description: This is a module that provides various git functionalities.
39+
- name: History
40+
link: /docs/api/history
41+
description: This module provides chat history management and summarization functionality for maintaining conversation context.
3942
- name: Knowledge
4043
link: /docs/api/knowledge
4144
description: This is a module that provides various knowledge related functionalities.
@@ -51,9 +54,6 @@ cbapicategory:
5154
- name: Rag
5255
link: /docs/api/rag
5356
description: This is a module that provides various RAG related functionalities.
54-
- name: Search
55-
link: /docs/api/search
56-
description: This is a module that provides various search related functionalities.
5757
- name: TaskPlanner
5858
link: /docs/api/taskplaner
5959
description: This is a module that provides various task planner related functionalities.
@@ -63,15 +63,15 @@ cbapicategory:
6363
- name: Tokenizer
6464
link: /docs/api/tokenizer
6565
description: Tokenization related Functionalities are provided so that the code can be tokenized and the tokens can be used to perform and measure various operations.
66+
- name: ToolBox
67+
link: /docs/api/toolbox
68+
description: MCP (Model Context Protocol) framework for creating and managing modular tools and services with support for resources, prompts, and session management.
6669
- name: VectorDB
6770
link: /docs/api/vectordb
6871
description: Provides Vector DB related Functionalities for Storing and Managing of Vector Embedding
6972
- name: MCP
7073
link: /docs/api/mcp
7174
description: Manages modular tools and services through WebSocket communication. Execute tools, retrieve tool details, and monitor enabled MCP instances in real-time
72-
- name: Agent
73-
link: /docs/api/agent
74-
description: Manages AI agents for tasks using WebSocket. Start agents, assign tasks, and track their status in real-time.
7575

7676
---
7777
# Codebolt AI Agent Framework API

docs/api/agent/findAgent.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ cbparameters:
1212
description: Maximum number of agents to return (default 1).
1313
- name: agents
1414
typeName: array
15-
description: List of agents to filter in vector database.
15+
description: List of agents to filter in vector database (empty array for no filtering).
1616
- name: agentLocation
1717
typeName: AgentLocation
18-
description: Location preference for agents (ALL, LOCAL_ONLY, REMOTE_ONLY).
18+
description: Location preference for agents (ALL, LOCAL_ONLY, REMOTE_ONLY). Default is ALL.
1919
- name: getFrom
2020
typeName: FilterUsing
21-
description: Filtering method (USE_AI, USE_VECTOR_DB, USE_BOTH).
21+
description: Filtering method (USE_AI, USE_VECTOR_DB, USE_BOTH). Default is USE_VECTOR_DB.
2222
returns:
2323
signatureTypeName: Promise
2424
description: A promise that resolves with the agent details.
@@ -36,7 +36,7 @@ data:
3636
### Examples
3737

3838
```js
39-
// Example 1: Find a single agent for a task
39+
// Example 1: Find a single agent for a task using default parameters
4040
const agent = await codebolt.agent.findAgent("dataProcessing");
4141
console.log("Found Agent:", agent);
4242

docs/api/agent/getAgent.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: getAgent
33
cbbaseinfo:
4-
description: Retrieves an agent based on the specified task.
4+
description: "[DEPRECATED] Retrieves an agent based on the specified task. Use findAgent instead."
55
cbparameters:
66
parameters:
77
- name: task
@@ -21,6 +21,8 @@ data:
2121
<CBBaseInfo/>
2222
<CBParameters/>
2323

24+
> **⚠️ Deprecated:** This function is deprecated. Please use [findAgent](/docs/api/agent/findAgent) instead.
25+
2426
### Example
2527

2628
```js

docs/api/agent/getAgentList.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cbparameters:
66
parameters:
77
- name: type
88
typeName: Agents
9-
description: The type of agents to list (default is Agents.DOWNLOADED)
9+
description: The type of agents to list (LOCAL, ALL, DOWNLOADED). Default is DOWNLOADED.
1010
returns:
1111
signatureTypeName: Promise
1212
description: A promise that resolves with the list of agents
@@ -29,15 +29,11 @@ const downloadedAgents = await codebolt.agent.getAgentsList();
2929
console.log("Downloaded Agents:", downloadedAgents);
3030

3131
// Example 2: Getting list of local agents
32-
const localAgents = await codebolt.agent.getAgentsList(Agents.LOCAL);
33-
console.log("LOCAL Agents:", localAgents);
32+
const localAgents = await codebolt.agent.getAgentsList(codebolt.agent.Agents.LOCAL);
33+
console.log("Local Agents:", localAgents);
3434

35-
// Example 3: Getting list of cloud agents
36-
const cloudAgents = await codebolt.agent.getAgentsList(Agents.CLOUD);
37-
console.log("CLOUD Agents:", cloudAgents);
38-
39-
// Example 4: Getting list of all agents
40-
const allAgents = await codebolt.agent.getAgentsList(Agents.ALL);
41-
console.log("ALL Agents:", allAgents);
35+
// Example 3: Getting list of all agents
36+
const allAgents = await codebolt.agent.getAgentsList(codebolt.agent.Agents.ALL);
37+
console.log("All Agents:", allAgents);
4238
```
4339

docs/api/agent/getAgentsDetail.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: getAgentsDetail
3+
cbbaseinfo:
4+
description: Retrieves detailed information for a list of specified agents.
5+
cbparameters:
6+
parameters:
7+
- name: agentList
8+
typeName: array
9+
description: List of agent IDs to get details for (empty array for all agents).
10+
returns:
11+
signatureTypeName: Promise
12+
description: A promise that resolves with the detailed information of the specified agents.
13+
typeArgs:
14+
- type: reference
15+
name: any
16+
data:
17+
name: getAgentsDetail
18+
category: agent
19+
link: getAgentsDetail.md
20+
---
21+
<CBBaseInfo/>
22+
<CBParameters/>
23+
24+
### Example
25+
26+
```js
27+
// Example 1: Get details for specific agents
28+
const agentDetails = await codebolt.agent.getAgentsDetail(["agent-id-1", "agent-id-2"]);
29+
console.log("Agent Details:", agentDetails);
30+
31+
// Example 2: Get details for all agents
32+
const allAgentDetails = await codebolt.agent.getAgentsDetail([]);
33+
console.log("All Agent Details:", allAgentDetails);
34+
```

docs/api/agent/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
cbapicategory:
3-
- name: getAgent
4-
link: /docs/api/agent/getAgent
5-
description: Retrieves an agent based on the specified task via WebSocket.
63
- name: startAgent
74
link: /docs/api/agent/startAgent
8-
description: Starts an agent for the specified task via WebSocket.
5+
description: Starts an agent for the specified task with a given agent ID .
96
- name: findAgent
107
link: /docs/api/agent/findAgent
11-
description: Retrieves an agent based on the specified task with filtering options.
8+
description: Finds agents for a specified task with filtering options by location, source and maximum results.
129
- name: getAgentsList
1310
link: /docs/api/agent/getAgentsList
14-
description: Lists all available agents of a specific type.
11+
description: Lists available agents of a specific type (downloaded, local, or all).
12+
- name: getAgentsDetail
13+
link: /docs/api/agent/getAgentsDetail
14+
description: Retrieves detailed information for a list of specified agents .
1515
---
16-
# agent
16+
# Agent
1717
<CBAPICategory />

docs/api/agent/startAgent.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ cbbaseinfo:
44
description: Starts an agent for the specified task.
55
cbparameters:
66
parameters:
7+
- name: agentId
8+
typeName: string
9+
description: The ID of the agent to start.
710
- name: task
811
typeName: string
912
description: The task for which the agent should be started.
@@ -25,7 +28,7 @@ data:
2528

2629
```js
2730
// Example: Starting an agent for a task
28-
const startResponse = await codebolt.agent.startAgent("dataProcessing");
31+
const startResponse = await codebolt.agent.startAgent("agent-123", "dataProcessing");
2932
console.log("Agent Start Response:", startResponse);
3033

3134
```

docs/api/browser/enter.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ cbbaseinfo:
55
cbparameters:
66
parameters: []
77
returns:
8-
signatureTypeName: Promise
8+
signatureTypeName: Promise<any>
99
description: A promise that resolves when the Enter action is complete.
10-
typeArgs:
11-
- type: intrinsic
12-
name: unknown
10+
typeArgs: []
1311
data:
1412
name: enter
1513
category: browser
1614
link: enter.md
1715
---
1816
<CBBaseInfo/>
19-
<CBParameters/>
17+
<CBParameters/>
2018

2119
### Example
2220

2321
```js
24-
2522
// Navigate to the sign-in page
2623
await codebolt.browser.goToPage("https://example.com/signin");
2724

@@ -33,9 +30,8 @@ await codebolt.browser.type("#password", "your_password");
3330

3431
// Simulate pressing the Enter key to submit the form
3532
await codebolt.browser.enter();
36-
3733
```
3834

39-
### Explanation:
35+
### Explanation
4036

41-
The codebolt.browser.enter() function is used to submit the form. Suppose there is a login form and I want to automatically submit it using a script. Then, we want to send text to a username field on the login page using the type() function, which has two parameters: eventid and "value". After inputting all the information, we call enter() to submit the form.
37+
The `codebolt.browser.enter()` function simulates pressing the Enter key on the current page. This is particularly useful for submitting forms, activating default buttons, or triggering other Enter key events on the page. After inputting information into form fields using the `type()` function, you can call `enter()` to submit the form without needing to locate and click a submit button.

0 commit comments

Comments
 (0)