Skip to content

Commit

Permalink
feat(agent): update CD regex, update tools description (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
matoushavlena authored Oct 4, 2024
1 parent 0450804 commit 50f86e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/agents/bee/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ Prefer to use these capabilities over functions.
- When using search engines, you try different formulations of the query, possibly even in a different language.
# Role
{{instructions}}
`,
{{instructions}}`,
});

export const BeeAssistantPrompt = new PromptTemplate({
Expand Down
2 changes: 1 addition & 1 deletion src/agents/bee/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class BeeAgentRunner {

static createParser(tools: AnyTool[]) {
const parserRegex =
/Thought:.+\n(?:Final Answer:[\S\s]+|Function Name:.+\nFunction Input:\{.+\}\nFunction Caption:.+\nFunction Output:)?/;
/Thought:.+\n(?:Final Answer:[\S\s]+|Function Name:.+\nFunction Input: \{.*\}\nFunction Caption:.+\nFunction Output:)?/;

const parser = new LinePrefixParser(
{
Expand Down
4 changes: 1 addition & 3 deletions src/tools/search/googleSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ export class GoogleSearchTool extends Tool<
GoogleSearchToolRunOptions
> {
name = "GoogleSearch";
description = `Search a query using Google Custom Search Engine.
Useful for when you need to answer questions or find relevant content on all or specific websites.
Output is a list of relevant websites with descriptions.`;
description = `Search for online trends, news, current events, real-time information, or research topics.`;

@Cache()
inputSchema() {
Expand Down

0 comments on commit 50f86e6

Please sign in to comment.