@trace_agent
decorator and how to define tasks and tools with Murnitur.
@trace_agent
@trace_agent
decorator allows you to trace an agent’s activities. It automatically instruments all callable functions within the agent class, but you can control this behavior using the auto_instrument
parameter.
SoftwareEngineerAgent
that generates Python code based on given prompts. The @trace_agent
decorator is used to trace its interactions with the OpenAI API.
@trace_agent
, @murnitur.task
, and @murnitur.tool
decorators, you can create a well-organized, traceable, and maintainable codebase. This not only helps in debugging and performance monitoring but also ensures that your system behaves as expected.