docs(agent): Add agents development guide (#1673)

This commit is contained in:
Fangyin Cheng
2024-06-28 09:56:29 +08:00
committed by GitHub
parent 1796969bac
commit 45a960f331
43 changed files with 4010 additions and 146 deletions

View File

@@ -187,6 +187,7 @@ class AgentContext:
max_new_tokens: int = 1024
temperature: float = 0.5
allow_format_str_template: Optional[bool] = False
verbose: bool = False
def to_dict(self) -> Dict[str, Any]:
"""Return a dictionary representation of the AgentContext."""