Skip to content

Logging doesn't work when calling RunSubagent.fromAnnotatedInstance #1390

@jacquicollier2-eng

Description

@jacquicollier2-eng

This code results in nothing being logged (for extra context, the code is using the Lombok @slf4j annotation):

@Action
    public ConversationSummary conversationSummary(ConversationAndSubAgentResponse conversationAndSubAgentResponse) {
        ConversationSummary conversationSummary =
                RunSubagent.fromAnnotatedInstance(summariserAgent, ConversationSummary.class);
        log.info("Conversation Summary: {}", conversationSummary);
        return conversationSummary;
    }

It seems to be because a SubAgent is being called. Is this by design?

Logging is working for other actions in the same class that do not call off to sub agents.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions