-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add spec parameter to agent.override() and agent.run()
#4769
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
Changes from all commits
3a9a537
fa70cc6
94ee345
65680fb
1504a8a
443a217
1cda25d
76e9510
665ac93
f654390
88fe894
ef7c0a9
3994a6a
af02274
2c536f3
a364a27
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ class AgentSpec(BaseModel): | |
|
|
||
| # $schema is included to avoid validation fails from the `$schema` key, see `_add_json_schema` below for context | ||
| json_schema_path: str | None = Field(default=None, alias='$schema') | ||
| model: str | ||
| model: str | None = None | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Making Is this intentional? If
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Making Consider instead keeping @DouweM — would appreciate your input on whether partial specs should be a first-class concept in |
||
| name: str | None = None | ||
| description: TemplateStr[Any] | str | None = None | ||
| instructions: TemplateStr[Any] | str | list[TemplateStr[Any] | str] | None = None | ||
|
|
@@ -194,7 +194,7 @@ def model_json_schema_with_capabilities( | |
| # - extra='forbid' enables strict validation in the generated schema | ||
| # When adding or removing fields on AgentSpec, update this class to match. | ||
| class _AgentSpecSchema(BaseModel, extra='forbid'): | ||
| model: str | ||
| model: str | None = None | ||
| name: str | None = None | ||
| description: str | None = None | ||
| instructions: str | list[str] | None = None | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.