Skip to content

How I declare and assign a function to one of my agent? Can you give me a sample agent node please? #166

Answered by mraguth
mraguth asked this question in Q&A
Discussion options

You must be logged in to vote

I added @tool at the top of the function and created an agent like below. But that new agent is not invoking in the flow

sdf_agent = create_agent(
llm,
[dataframe_to_parquet],
#system_message="Any charts you display will be visible by the user.",
system_message=""" XXXXXX
"""
)
sdf_node = functools.partial(agent_node, agent=sdf_agent, name="Parq Generator")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant