Skip to content
Discussion options

You must be logged in to vote

Hi @tschokokuki, thanks for the question. You are right on both counts: prompting is not an enforcement mechanism, and a workflow is overengineered for a pairwise tool dependency like this. The framework has a lighter primitive for exactly this case.

The approach I would recommend is progressive tool exposure. Do not register update_work_item on the agent at all. Instead, have get_work_item add it to the run once a fetch succeeds. A tool can declare a FunctionInvocationContext parameter (it is injected by the framework and never shown to the model) and mutate the live tool list:

from agent_framework import ChatAgent, FunctionInvocationContext, tool


@tool
def update_work_item(work_item_id: 

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@tschokokuki
Comment options

Answer selected by moonbox3
Comment options

You must be logged in to vote
2 replies
@tschokokuki
Comment options

@ishita-0301
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
agents Issues related to single agents
3 participants