Skip to content

Commit

Permalink
Merge pull request #287 from isamu/groqType
Browse files Browse the repository at this point in the history
add type
  • Loading branch information
snakajima authored May 9, 2024
2 parents 971324d + 253da9f commit 6cd688b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/experimental_agents/llm_agents/groq_agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export const groqAgent: AgentFunction<
query?: string;
system?: string;
verbose?: boolean;
tools?: Record<string, any>;
tools?: Record<string, Groq.Chat.CompletionCreateParams.ToolChoice>;
temperature?: number;
max_tokens?: number;
tool_choice?: string | Record<string, any>;
},
Record<string, any> | string,
string | Array<Record<string, any>>
string | Array<Groq.Chat.CompletionCreateParams.Message>
> = async ({ params, inputs }) => {
assert(groq !== undefined, "The GROQ_API_KEY environment variable is missing.");
const { verbose, query, system, tools, tool_choice, max_tokens, temperature } = params;
Expand Down

0 comments on commit 6cd688b

Please sign in to comment.