Skip to content

Commit

Permalink
fix(agent): update constraint decoding regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Sep 27, 2024
1 parent ff5b586 commit 8d47cae
Showing 1 changed file with 1 addition and 1 deletion.
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({
thought: {
Expand Down

0 comments on commit 8d47cae

Please sign in to comment.