|
14 | 14 | class Configuration:
|
15 | 15 | """The configuration for the agent."""
|
16 | 16 |
|
17 |
| - system_prompt: str = field(default=prompts.SYSTEM_PROMPT) |
18 |
| - """The system prompt to use for the agent's interactions. |
19 |
| - |
20 |
| - This prompt sets the context and behavior for the agent. |
21 |
| - """ |
22 |
| - |
23 |
| - model_name: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = ( |
24 |
| - "anthropic/claude-3-5-sonnet-20240620" |
| 17 | + system_prompt: str = field( |
| 18 | + default=prompts.SYSTEM_PROMPT, |
| 19 | + metadata={ |
| 20 | + "description": "The system prompt to use for the agent's interactions. " |
| 21 | + "This prompt sets the context and behavior for the agent." |
| 22 | + }, |
| 23 | + ) |
| 24 | + |
| 25 | + model_name: Annotated[str, {"__template_metadata__": {"kind": "llm"}}] = field( |
| 26 | + default="anthropic/claude-3-5-sonnet-20240620", |
| 27 | + metadata={ |
| 28 | + "description": "The name of the language model to use for the agent's main interactions. " |
| 29 | + "Should be in the form: provider/model-name." |
| 30 | + }, |
25 | 31 | )
|
26 |
| - """The name of the language model to use for the agent's main interactions. |
27 |
| - |
28 |
| - Should be in the form: provider/model-name. |
29 |
| - """ |
30 | 32 |
|
31 | 33 | scraper_tool_model_name: Annotated[
|
32 | 34 | str, {"__template_metadata__": {"kind": "llm"}}
|
33 |
| - ] = "accounts/fireworks/models/firefunction-v2" |
34 |
| - """The name of the language model to use for the web scraping tool. |
35 |
| - |
36 |
| - This model is specifically used for summarizing and extracting information from web pages. |
37 |
| - """ |
38 |
| - max_search_results: int = 10 |
39 |
| - """The maximum number of search results to return for each search query.""" |
| 35 | + ] = field( |
| 36 | + default="accounts/fireworks/models/firefunction-v2", |
| 37 | + metadata={ |
| 38 | + "description": "The name of the language model to use for the web scraping tool. " |
| 39 | + "This model is specifically used for summarizing and extracting information from web pages." |
| 40 | + }, |
| 41 | + ) |
| 42 | + |
| 43 | + max_search_results: int = field( |
| 44 | + default=10, |
| 45 | + metadata={ |
| 46 | + "description": "The maximum number of search results to return for each search query." |
| 47 | + }, |
| 48 | + ) |
40 | 49 |
|
41 | 50 | @classmethod
|
42 | 51 | def from_runnable_config(
|
|
0 commit comments