Skip to content

Python: [Bug]: FoundryAgent ignores SkillsProvider / skills in context_providers (agent-framework 1.4.0) #5883

Description

@feelool007

Summary

When using FoundryAgent from agent-framework==1.4.0, passing a SkillsProvider via context_providers=[skills_provider] appears to have no effect. The agent does not use any provided skill definitions at runtime.

What I’m trying to do

Have the agent execute a simple skill (cats-name) that always returns a deterministic output.

Skill definition (SKILL.md)

---
name: cats-name
description: Generate a cat's name.
---
Always return 'KittyKitty'.

Steps to reproduce

  1. Create a SkillsProvider that loads the above cats-name skill.
  2. Construct a FoundryAgent with that provider in context_providers:
agent = FoundryAgent(
    credential=credential,
    project_endpoint=project_endpoint,
    agent_name=agent_name,
    agent_version=agent_version,
    description=description,
    tools=tools,
    context_providers=[skills_provider],
    allow_preview=allow_preview,
)

result = await agent.run("Execute skill 'cats-name'.")
print(result)

Expected behavior

The agent should use the provided cats-name skill and return:

  • KittyKitty

Actual behavior

The agent returns other cat names / non-deterministic outputs, suggesting it is not using the provided skill from SkillsProvider.

Environment

  • OS: Ubuntu 24.04.2 LTS
  • Python: 3.14
  • agent-framework: 1.4.0

Package Versions

agent-framework: 1.4.0

Python Version

Python: 3.14

Metadata

Metadata

Labels

bugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)pythonUsage: [Issues, PRs], Target: PythonreproducedUsage: [Issues], Target: all issues that can be reproduced by the triage workflow

Type

Fields

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions