nat.plugins.autogen.tool_wrapper#
Tool wrapper for AutoGen integration with NAT.
Attributes#
Functions#
|
Return the non-None member of a Union/PEP 604 union; |
|
Wrap a NAT |
Module Contents#
- logger#
- resolve_type(t: Any) Any#
Return the non-None member of a Union/PEP 604 union; otherwise return the type unchanged.
- Args:
t (Any): The type to resolve.
- Returns:
Any: The resolved type.
- autogen_tool_wrapper(
- name: str,
- fn: nat.builder.function.Function,
- _builder: nat.builder.builder.Builder,
Wrap a NAT
Functionas an AutoGenFunctionTool.- Args:
name (str): The name of the tool. fn (Function): The NAT function to wrap. _builder (Builder): The NAT workflow builder to access registered components.
- Returns:
Any: The AutoGen FunctionTool wrapping the NAT function.