Skip to content

Commit 028fda6

Browse files
committed
2 parents a4ef6f5 + fac86f0 commit 028fda6

File tree

161 files changed

+19729
-3147
lines changed

Some content is hidden

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

161 files changed

+19729
-3147
lines changed

.codebolt/23244_output.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
npm install -g typescript-language-server typescript
2+
]0;C:\WINDOWS\SYSTEM32\cmd.exe - npm install -g typescript-language-server typescript]0;C:\WINDOWS\system32\cmd.exe - "node" "C:\Users\NURSID\AppData\Roaming\npm\\node_modules\npm\bin\npm-cli.js" install -g typescript-language-server typescript]0;npm]0;npm install typescript-language-server typescript\|/-\|/-\|/-\|/-
3+
changed 2 packages in 4s
4+
]0;C:\WINDOWS\system32\cmd.exe [?25l
5+
C:\btpl\codeboltai.github.io>echo EXIT_CODE=%ERRORLEVEL%
6+
EXIT_CODE=0C:\btpl\codeboltai.github.io>[?25h[?25lcd C:\btpl\codeboltai.github.ioC:\btpl\codeboltai.github.io>[?25hC:\btpl\codeboltai.github.io>
File renamed without changes.

.codebolt/74779_output.txt

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

.codebolt/agentsWithSteps.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
[
2+
{
3+
"id": 24,
4+
"avatarFallback": "CE",
5+
"avatarSrc": "https://placehold.co/200x200",
6+
"createdByUser": "ravis",
7+
"description": "Codebolt Dev, is a highly skilled software developer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.",
8+
"agent_id": "c4d3fdb9-cf9e-4f82-8a1d-0160bbfc9ae9",
9+
"longDescription": "Codebolt Dev, is a highly skilled software developer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.\n",
10+
"tags": [
11+
"codebolt",
12+
"developer"
13+
],
14+
"title": "Act",
15+
"zipFilePath": "https://pub-cd2980acaa6d4462a4356b5afe3a82d6.r2.dev/agent/536e028b-dcdf-46ba-a1b5-fd1b75d8bf6e.zip",
16+
"unique_id": "act",
17+
"metadata": {
18+
"agent_routing": {
19+
"worksonblankcode": true,
20+
"worksonexistingcode": true,
21+
"supportedlanguages": [],
22+
"supportedframeworks": []
23+
},
24+
"defaultagentllm": {
25+
"strict": true,
26+
"modelorder": [
27+
"ollama2"
28+
]
29+
},
30+
"sdlc_steps_managed": [],
31+
"llm_role": [
32+
{
33+
"name": "documentationllm",
34+
"description": "LLM to be used for advanced Documentation. Please select a model that excels in documentation tasks.",
35+
"strict": true,
36+
"modelorder": [
37+
"gpt-4-turbo",
38+
"gpt-3.5-turbo",
39+
"mistral7b.perplexity",
40+
"mistral7b.any",
41+
"llama2-70b",
42+
"llama2-15b",
43+
"group.documentationmodels"
44+
]
45+
},
46+
{
47+
"name": "testingllm",
48+
"description": "LLM to be used for advanced Testing. Please select a model that excels in testing tasks.",
49+
"strict": true,
50+
"modelorder": [
51+
"gpt-4-turbo",
52+
"gpt-3.5-turbo",
53+
"mistral7b.perplexity",
54+
"mistral7b.any",
55+
"llama2-70b",
56+
"llama2-15b",
57+
"group.testingmodels"
58+
]
59+
},
60+
{
61+
"name": "actionllm",
62+
"description": "LLM to be used for executing advanced actions.",
63+
"strict": true,
64+
"modelorder": [
65+
"gpt-4-turbo",
66+
"gpt-3.5-turbo",
67+
"mistral7b.perplexity",
68+
"mistral7b.any",
69+
"llama2-70b",
70+
"llama2-15b",
71+
"group.actionmodels"
72+
]
73+
}
74+
]
75+
},
76+
"initial_message": "Hello! I'm your advanced AI developer. How can I assist you today?",
77+
"actions": [
78+
{
79+
"name": "Execute",
80+
"description": "Executes the given task.",
81+
"detailDescription": "more detailed description",
82+
"actionPrompt": "Please run this code"
83+
}
84+
],
85+
"slug": "c4d3fdb9cf9e4f828a1d0160bbfc9ae9",
86+
"version": "1.1.20",
87+
"author": "codebolt",
88+
"status": 1,
89+
"updatedAt": "2025-04-25T16:22:10.487Z",
90+
"sourceCodeUrl": "https://pub-cd2980acaa6d4462a4356b5afe3a82d6.r2.dev/agentsource/bdd6b947-7b8e-4aa5-8ac3-96539fd986ec.zip",
91+
"lastUpdatedUI": 0,
92+
"githubUrl": null,
93+
"isInvalid": 0,
94+
"isVerified": 0,
95+
"isDisabled": 0,
96+
"isPrivate": 0,
97+
"isLocal": false
98+
}
99+
]

.codebolt/chat.json

Lines changed: 11758 additions & 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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
{
2-
"rootHash": "432471293d81271bc74d88d0a0e4428a4b4ab8aa9f2e6e10850774334e8b2b8c",
2+
"rootHash": "e21660dc920123c21561e5c3daa1df4766d0122d1ade82e9fd1357a64840b233",
33
"leaves": [
4-
"2621d2c68302813173b10913b6197d07ae8416396a2f8aa0a64e488cc3760c43",
5-
"ecf9116121a771be597830df649273217be987f12c2dd0c87ebf30054795d6ad"
4+
"102b0ba522ca4a776de94368b9637d662d38e256295e12da85f112ae4e87ba31",
5+
"3d9be1b94a840c816d09e3261f53a6a86892b030c1f7510a9927bc566ba6722c",
6+
"9f05954cafe2d562f52f58102fba6bde5ac34745eacf1dbed9c3fcb55ea3d12e",
7+
"eec9d2aad94a377a457b08225bc49e309277bcc13e89bd8f52f1bbd7409dae18"
68
],
79
"filesList": [
810
{
9-
"path": ".codebolt/merkle_tree.json",
10-
"hash": "0626188b26fc0cf6989bd00cd77fc7fe145e386c6be0acc387360521e626feb8"
11+
"path": ".codeboltconfig.yaml",
12+
"hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
1113
},
1214
{
13-
"path": ".codebolt/projectState.json",
14-
"hash": "53787d2f86eb9be83094c1f8bda10f04eb81899ebc59d87089a206602baecd92"
15+
"path": ".gitignore",
16+
"hash": "621b0093f67c1cba342cf761c1a19e30e54da65b4c1860408abe198efa7e2a3b"
17+
},
18+
{
19+
"path": "README.md",
20+
"hash": "b7aee3171aeecf62f2003900b8777483511d26429100c776f69f1a25128f9a12"
21+
},
22+
{
23+
"path": "test-file.txt",
24+
"hash": "398d4fe9a1703b1003a44512457753f90dde5926e31924d8f7ac5c45b83656b5"
1525
}
1626
]
1727
}

.codebolt/null.json

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

.codebolt/projectState.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"activeView": "Code",
1414
"id": "1"
1515
},
16-
"size": 592
16+
"size": 1094
1717
},
1818
{
1919
"type": "leaf",
@@ -24,13 +24,13 @@
2424
"activeView": "Chat",
2525
"id": "2"
2626
},
27-
"size": 592
27+
"size": 440.390625
2828
}
2929
],
30-
"size": 860
30+
"size": 756
3131
},
32-
"width": 1184,
33-
"height": 860,
32+
"width": 1534.390625,
33+
"height": 756,
3434
"orientation": "HORIZONTAL"
3535
},
3636
"panels": {

.codebolt/undefined.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"ports": [
3-
3003
4-
]
2+
"ports": []
53
}

docs/api/apiaccess/agent/findAgent.md

Lines changed: 52 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
22
name: FindAgent
33
cbbaseinfo:
4-
description: Finds an agent suitable for the specified task.
4+
description: Finds an agent suitable for the specified task using AI and/or vector database filtering.
55
cbparameters:
66
parameters:
77
- name: task
88
typeName: string
9-
description: The task for which an agent is needed.
9+
description: The task description for which an agent is needed (e.g., "Write a function to sum of Two number", "create node js app").
1010
- name: maxResult
1111
typeName: number
12-
description: Maximum number of agents to return (default 1).
12+
description: Maximum number of agents to return (default 1, commonly used values are 3-10).
1313
- name: agents
1414
typeName: array
15-
description: List of agents to filter in vector database (empty array for no filtering).
15+
description: List of specific agent names/IDs to filter in vector database (empty array for no filtering).
1616
- name: agentLocation
17-
typeName: AgentLocation
18-
description: Location preference for agents (ALL, LOCAL_ONLY, REMOTE_ONLY). Default is ALL.
17+
typeName: string
18+
description: Location preference for agents. Valid values are 'remote_only', 'local_only', 'all'. Default is 'all'.
1919
- name: getFrom
20-
typeName: FilterUsing
21-
description: Filtering method (USE_AI, USE_VECTOR_DB, USE_BOTH). Default is USE_VECTOR_DB.
20+
typeName: string
21+
description: Filtering method. Valid values are 'use_ai', 'use_vector_db', 'use_both'. Default is 'use_vector_db'.
2222
returns:
2323
signatureTypeName: Promise
24-
description: A promise that resolves with the agent details.
24+
description: A promise that resolves with a findAgentByTaskResponse object containing an array of found agents.
2525
typeArgs:
2626
- type: reference
27-
name: any
27+
name: FindAgentByTaskResponse
2828
data:
2929
name: findAgent
3030
category: agent
@@ -33,31 +33,60 @@ data:
3333
<CBBaseInfo/>
3434
<CBParameters/>
3535

36+
### Response Structure
37+
38+
The method returns a Promise that resolves to a `FindAgentByTaskResponse` object with:
39+
- `type`: The response type, always "findAgentByTaskResponse"
40+
- `agents`: Array of found agents, each containing:
41+
- `type`: The agent type, typically "function"
42+
- `function`: Agent function details including:
43+
- `name`: The name/identifier of the agent
44+
- `description`: Detailed description of the agent's capabilities
45+
- `parameters`: Parameter specification object with type, properties, required fields, and additionalProperties flag
46+
- `strict`: Boolean indicating whether the agent enforces strict parameter validation
47+
3648
### Examples
3749

3850
```js
39-
// Example 1: Find a single agent for a task using default parameters
40-
const agent = await codebolt.agent.findAgent("dataProcessing");
51+
// Example 1: Find agents for a specific task with default parameters
52+
const agent = await codebolt.agent.findAgent("Write a function to sum of Two number");
4153
console.log("Found Agent:", agent);
4254

43-
// Example 2: Find multiple agents with specific filters
55+
// Example 2: Find multiple agents with remote-only preference
4456
const agents = await codebolt.agent.findAgent(
45-
"imageProcessing",
46-
3, // maxResult
47-
[], // agents
48-
codebolt.agent.AgentLocation.LOCAL_ONLY,
49-
codebolt.agent.FilterUsing.USE_VECTOR_DB
57+
"create node js app",
58+
10, // maxResult
59+
[], // agents filter
60+
'remote_only', // agentLocation
61+
'use_both' // getFrom
5062
);
5163
console.log("Found Agents:", agents);
5264

53-
// Example 3: Find agents using AI filtering
65+
// Example 3: Find agents using AI filtering with local-only preference
5466
const aiFilteredAgents = await codebolt.agent.findAgent(
55-
"naturalLanguageProcessing",
56-
2,
67+
"Analyze data and provide insights",
68+
1,
5769
[],
58-
codebolt.agent.AgentLocation.ALL,
59-
codebolt.agent.FilterUsing.USE_AI
70+
'local_only',
71+
'use_ai'
6072
);
6173
console.log("AI Filtered Agents:", aiFilteredAgents);
74+
75+
// Example 4: Find agents with specific agent filtering
76+
const filteredAgents = await codebolt.agent.findAgent(
77+
"Code generation task",
78+
2,
79+
['agent1', 'agent2'], // specific agents to filter
80+
'all',
81+
'use_both'
82+
);
83+
console.log("Filtered Agents:", filteredAgents);
6284
```
6385

86+
### Notes
87+
- The `task` parameter should be a clear description of what you want the agent to do
88+
- When using `remote_only` or `local_only`, make sure you have agents available in those locations
89+
- Using `use_both` for filtering provides the most comprehensive results but may be slower
90+
- The returned agents array contains detailed information about each agent including their capabilities and metadata
91+
- Each agent in the response includes its function signature and parameter requirements
92+

docs/api/apiaccess/agent/getAgentsDetail.md

Lines changed: 68 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cbparameters:
1212
description: A promise that resolves with the detailed information of the specified agents.
1313
typeArgs:
1414
- type: reference
15-
name: any
15+
name: AgentsDetailResponse
1616
data:
1717
name: getAgentsDetail
1818
category: agent
@@ -21,14 +21,75 @@ data:
2121
<CBBaseInfo/>
2222
<CBParameters/>
2323

24-
### Example
24+
### Response Structure
25+
26+
The method returns a Promise that resolves to an `AgentsDetailResponse` object with:
27+
- `type`: "agentsDetailResponse"
28+
- `messageId`: Unique message identifier string
29+
- `threadId`: Thread identifier string
30+
- `success`: Boolean indicating if the request was successful
31+
- `payload`: Object containing the actual data:
32+
- `agents`: Array of detailed agent objects, each containing:
33+
- `id`: Unique agent identifier
34+
- `name`: Agent display name
35+
- `description`: Agent description text
36+
- `capabilities`: Array of agent capabilities (may be empty)
37+
- `isLocal`: Boolean indicating if the agent is local
38+
- `version`: Version string of the agent
39+
- `status`: Numeric status code (1 = active)
40+
- `unique_id`: Unique identifier string for the agent
41+
42+
### Examples
2543

2644
```js
2745
// 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);
46+
// First, get the list of available agents
47+
const agentsList = await codebolt.agent.getAgentsList('downloaded');
48+
49+
if (agentsList?.agents && agentsList.agents.length > 0) {
50+
// Extract agent IDs from the first few agents
51+
const agentIds = agentsList.agents.slice(0, 3).map(agent => agent.function?.name);
52+
console.log('Agent IDs to get details for:', agentIds);
53+
54+
// Get detailed information for the selected agents
55+
const agentsDetailResult = await codebolt.agent.getAgentsDetail(agentIds);
56+
console.log('Agent details result type:', agentsDetailResult?.type); // "agentsDetailResponse"
57+
console.log('Message ID:', agentsDetailResult?.messageId);
58+
console.log('Success:', agentsDetailResult?.success);
59+
console.log('Details count:', agentsDetailResult?.payload?.agents?.length || 0);
60+
console.log('Agent details:', agentsDetailResult);
61+
62+
// Access individual agent details
63+
if (agentsDetailResult?.payload?.agents?.length > 0) {
64+
const firstAgent = agentsDetailResult.payload.agents[0];
65+
console.log('First agent ID:', firstAgent.id);
66+
console.log('First agent name:', firstAgent.name);
67+
console.log('First agent version:', firstAgent.version);
68+
console.log('First agent is local:', firstAgent.isLocal);
69+
}
70+
}
3071

31-
// Example 2: Get details for all agents
72+
// Example 2: Get details for all agents (using empty array)
3273
const allAgentDetails = await codebolt.agent.getAgentsDetail([]);
33-
console.log("All Agent Details:", allAgentDetails);
34-
```
74+
console.log('All agent details:', allAgentDetails);
75+
console.log('Success:', allAgentDetails?.success);
76+
console.log('Total agents:', allAgentDetails?.payload?.agents?.length || 0);
77+
78+
// Display each agent's key information
79+
if (allAgentDetails?.payload?.agents) {
80+
allAgentDetails.payload.agents.forEach((agent, index) => {
81+
console.log(`Agent ${index + 1}:`);
82+
console.log(` - ID: ${agent.id}`);
83+
console.log(` - Name: ${agent.name}`);
84+
console.log(` - Version: ${agent.version}`);
85+
console.log(` - Status: ${agent.status}`);
86+
console.log(` - Is Local: ${agent.isLocal}`);
87+
console.log(` - Unique ID: ${agent.unique_id}`);
88+
});
89+
}
90+
```
91+
92+
### Usage Notes
93+
94+
- Agent IDs can be obtained from the `getAgentsList()` method using `agent.function?.name`
95+
- Pass an empty array `[]` to get details for all available agents

0 commit comments

Comments
 (0)