Please describe the purpose of this pull request.
Add the ability to create tools from the client, and to create agents with tools (without specifying a preset):
def print_tool(message: str):
"""
Args:
message (str): The message to print.
Returns:
str: The message that was printed.
"""
print(message)
return message
tool = client.create_tool(print_tool, tags=["extras"])
agent_state = client.create_agent(tools=[tool.name]))
How to testpoetry run pytest -s tests/test_tools.py
Please describe the purpose of this pull request. Add the ability to create tools from the client, and to create agents with tools (without specifying a preset):
How to test
poetry run pytest -s tests/test_tools.py
Have you tested this PR? Yes