Skip to content

Commit 0f68455

Browse files
committed
Add descriptions
1 parent 65a21dd commit 0f68455

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Configuration auto-generated by `langgraph template lock`. DO NOT EDIT MANUALLY.
125125
"model_name": {
126126
"type": "string",
127127
"default": "anthropic/claude-3-5-sonnet-20240620",
128+
"description": "The name of the language model to use for the agent's main interactions. Should be in the form: provider/model-name.",
128129
"environment": [
129130
{
130131
"value": "anthropic/claude-1.2",
@@ -311,6 +312,7 @@ Configuration auto-generated by `langgraph template lock`. DO NOT EDIT MANUALLY.
311312
"scraper_tool_model_name": {
312313
"type": "string",
313314
"default": "accounts/fireworks/models/firefunction-v2",
315+
"description": "The name of the language model to use for the web scraping tool. This model is specifically used for summarizing and extracting information from web pages.",
314316
"environment": [
315317
{
316318
"value": "anthropic/claude-1.2",

src/react_agent/configuration.py

+28-19
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,38 @@
1414
class Configuration:
1515
"""The configuration for the agent."""
1616

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+
},
2531
)
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-
"""
3032

3133
scraper_tool_model_name: Annotated[
3234
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+
)
4049

4150
@classmethod
4251
def from_runnable_config(

0 commit comments

Comments
 (0)