• new HfAgent(accessToken?
, LLM?
, tools?
): HfAgent
Name | Type | Default value |
---|---|---|
accessToken | string | "" |
LLM? | LLM | undefined |
tools? | Tool [] | undefined |
• Private
accessToken: string
• Private
llm: LLM
• Private
tools: Tool
[]
▸ evaluateCode(code
, files?
): Promise
\<Update
[]>
Name | Type |
---|---|
code | string |
files? | FileList |
Promise
\<Update
[]>
▸ generateCode(prompt
, files?
): Promise
\<string
>
Name | Type |
---|---|
prompt | string |
files? | FileList |
Promise
\<string
>
▸ generatePrompt(prompt
, files?
): string
Name | Type |
---|---|
prompt | string |
files? | FileList |
string
▸ run(prompt
, files?
): Promise
\<Update
[]>
Name | Type |
---|---|
prompt | string |
files? | FileList |
Promise
\<Update
[]>