Skip to content

.NET: [Bug]: Arguments valueKind is String instead of Object when calling AgentInlineSkillScript via functionCall #6020

@zhuangif

Description

@zhuangif

Description

Problem Description

When using functionCall to invoke AgentInlineSkillScript, the arguments.valueKind is always String instead of Object. I expect it to be Object so that the skill can receive structured arguments.

Current Behavior

Every time the agent generates function call arguments, they are serialized as a string, even though my skill expects structured object arguments.

Environment

  • Model: minimax-m2.5
  • Deployment: vLLM
  • Skill Type: AgentInlineSkillScript

Expected Behavior

When the agent calls a skill via functionCall, arguments.valueKind should be Object (structured JSON), not String (serialized JSON string).

Reproduction Steps

  1. Define an AgentInlineSkillScript that expects object-type arguments.
  2. Use the agent with functionCall enabled to invoke the skill.
  3. Inspect the generated argumentsvalueKind is String instead of Object.

Question

Is this a vLLM inference parameter issue, or a model-side (minimax-m2.5) function calling behavior? How can I make the agent output valueKind: Object for skill arguments?

Image Image

Code Sample

Error Messages / Stack Traces

Package Versions

Microsoft.Agents.* 1.4 1.5 1.6

.NET Version

.NET 8.0

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions