-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create PromptTemplates typed dict #547
Create PromptTemplates typed dict #547
Conversation
src/smolagents/agents.py
Outdated
@@ -88,7 +122,7 @@ class MultiStepAgent: | |||
Args: | |||
tools (`list[Tool]`): [`Tool`]s that the agent can use. | |||
model (`Callable[[list[dict[str, str]]], ChatMessage]`): Model that will generate the agent's actions. | |||
prompt_templates (`dict`, *optional*): Prompt templates. | |||
prompt_templates ([`PromptTemplates`], *optional*): Prompt templates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@albertvillanova will that still support passing a simple dictionary as a prompt_template
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure of understanding your question. PrompTemplates is a dict.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Create
PromptTemplates
typed dict.