Skip to content

[Python SDK] reasoner and skill decorators duplication #652

Description

@pocesar

Summary

Agent class contains the .skill and .reasoner. AgentRouter also contains a .skill and .reasoner with different mechanism for wrapping the function. The decorators.py got more of the same code.

Proposed solution

All of those can be made into a mixin class to be able to keep the implementation consistent between classes. Agent and AgentRouter initially would use the single source of truth. The plus side is that it'll enable to be tested in isolation without all the bells and whistles that come with Agent

Alternatives considered

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions