MCPcopy Index your code
hub / github.com/microsoft/autogen / my_function

Function my_function

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

Source from the content-addressed store, hash-verified

72
73def test_func_tool_schema_generation() -> None:
74 def my_function(arg: str, other: Annotated[int, "int arg"], nonrequired: int = 5) -> MyResult:
75 return MyResult(result="test")
76
77 tool = FunctionTool(my_function, description="Function tool.")
78 schema = tool.schema

Callers

nothing calls this directly

Calls 2

MyResultCustomDumpClass · 0.85
MyResultClass · 0.70

Tested by

no test coverage detected