Skip to content

Python: Bug: Inconsistent behavior of function calling from agent class #41501

Open
@NirajC-Microsoft

Description

@NirajC-Microsoft

Describe the bug
I'm experiencing an issue where calling a new function from an agent class returns the output of a previously invoked function, leading to inconsistent agent responses.

Expected behavior
When a specific function is called from an agent class, the response should accurately reflect the output of that function, not a previously invoked function. Each function call should produce a fresh, contextually relevant response based on the current invocation

Screenshots
Correct Scenario:
Here assign_mentor gets called and giving correct response

Image

Bug:
Here assign_mentor gets called but giving incorrect response, that response is from previous function called from same agent class.

Image

Metadata

Metadata

Assignees

Labels

AIAI Agentscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions