Log in
Log into community
Find answers from the community
Most posts
Powered by
Hall
Home
Members
Avi
A
Avi
Offline
, last seen 3 months ago
Joined September 25, 2024
Contributions
Comments
Replies
A
Avi
8 months ago
·
❓py-issues-and-help
def multiply(a: int, b: int) -> int:
"""Multiple two integers and returns the result integer"""
return a * b
def add(a: int, b: int) -> int:
"""Add two integers and returns the result integer"""
return a + b
add_tool = FunctionTool.from_defaults(fn=add)
multiply_tool = FunctionTool.from_defaults(fn=multiply)
llm = OpenAI(model="gpt-3.5-turbo-1106")
agent = OpenAIAgent.from_tools(
[multiply_tool, add_tool], llm=llm, verbose=True
)
I want to pass function schema direct instead of Function
i have JS function for execution
3 comments
L
A