MCPcopy
hub / github.com/microsoft/autogen / my_function2

Function my_function2

python/packages/autogen-core/tests/test_tools.py:105–106  ·  view source on GitHub ↗
(arg: str, other: Annotated[int, "int arg"])

Source from the content-addressed store, hash-verified

103 schema = tool.schema
104
105 def my_function2(arg: str, other: Annotated[int, "int arg"]) -> MyResult:
106 return MyResult(result="test")
107
108 tool = FunctionTool(my_function2, description="Function tool.", strict=True)
109 schema = tool.schema

Callers

nothing calls this directly

Calls 1

MyResultClass · 0.70

Tested by

no test coverage detected