-
Notifications
You must be signed in to change notification settings - Fork 762
[Tiny Agents] Add tools to config #3242
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
base: main
Are you sure you want to change the base?
[Tiny Agents] Add tools to config #3242
Conversation
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. |
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.
what does Claude say the behavior should be if specify both 'include' and 'exclude'? 😀
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.
Back to work Claude! 😁
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.
to be removed
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.
to be moved to https://huggingface.co/datasets/tiny-agents/tiny-agents
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.
to be removed
class StdioServerConfig(TypedDict): | ||
type: Literal["stdio"] | ||
command: str | ||
args: List[str] | ||
env: Dict[str, str] | ||
cwd: str | ||
tools: NotRequired[ToolsConfig] |
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.
Can you rename it allowed_tools
and accept only a list of strings as input? I can see pretty clearly the goal of allowing only a certain subset of tools but not necessarily excluding some. In the future if we really need it we can always add a new forbidden_tools
property.
def _filter_tools( | ||
self, tools: List[Any], tools_config: Optional[Dict[str, Any]], all_tool_names: List[str] | ||
) -> List[Any]: |
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.
Haven't reviewed this logic myself but I feel that if we only have a allowed_tools
list then a 1-line list comprehension should be enough
This PR enables tools inclusion/exclusion for a given agent. Users can specify the tools to include/exclude like so:
Note: this feature was implemented using Claude Code.