A function tool named like the computer toolset's `key` tool.
(text: str)
| 60 | |
| 61 | @beta_async_tool(name="key") |
| 62 | async def async_key(text: str) -> str: |
| 63 | """A function tool named like the computer toolset's `key` tool.""" |
| 64 | ran.append(text) |
| 65 | return "the function tool ran" |
| 66 | |
| 67 | key_tool = async_key |
| 68 | test = setup([reply(toolset_call("k")), done()], computer={}, extra_tools=[key_tool]) |