The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
2.1.5
flyteplugins.openai.agents
Directory
Methods
| Method | Description |
|---|---|
function_tool() |
Flyte-compatible replacement for @agents. |
Methods
function_tool()
def function_tool(
func: typing.Union[flyte._task.AsyncFunctionTaskTemplate, typing.Callable, NoneType],
kwargs,
) -> flyteplugins.openai.agents._function_tools.FunctionTool | agents.tool.FunctionToolFlyte-compatible replacement for @agents.function_tool
**kwargs are forwarded to the underlying @agents.function_tool decorator. For @flyte.trace functions, this just forwards all the arguments to the agents.function_tool decorator: https://openai.github.io/openai-agents-python/ref/tool/#agents.tool.function_tool
For @TaskEnvironment.task functions, this will create a flyte-compatible FunctionTool dataclass that can run tools as flyte tasks.
| Parameter | Type | Description |
|---|---|---|
func |
typing.Union[flyte._task.AsyncFunctionTaskTemplate, typing.Callable, NoneType] |
|
kwargs |
**kwargs |