Skip to content

Conversation

@jonatan-ivanov
Copy link
Member

@jonatan-ivanov jonatan-ivanov commented Oct 30, 2025

This is a rebase + reactive support of @ThomasVitale's original changes in #4350:

  • Add possibility to provide a custom AdvisorObservationConvention to the ChatClient for customizing the conventions for advisor spans and metrics.
  • Add ChatClientResponse to ChatClientObservationContext for achiving full visibility into both request and response.

ThomasVitale and others added 3 commits October 30, 2025 14:06
* Add possibility to provide a custom AdvisorObservationConvention to the ChatClient for customizing the conventions for advisor spans and metrics.
* Add ChatClientResponse to ChatClientObservationContext for achieving full visibility into both request and response.

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
public DefaultChatClientRequestSpec(ChatModel chatModel, @Nullable String userText,
Map<String, Object> userParams, Map<String, Object> userMetadata, @Nullable String systemText,
Map<String, Object> systemParams, Map<String, Object> systemMetadata, List<ToolCallback> toolCallbacks,
List<ToolCallbackProvider> toolCallbackProviders, List<Message> messages, List<String> toolNames,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly related to this PR: during rebasing Thomas' changes, I found an extra param here: List<ToolCallbackProvider> toolCallbackProviders that wasn't there before, I guess that's a breaking change between 1.0 and 1.1. If that's ok, maybe the deprecated ctor can be removed too in this PR? (I prefer not breaking things though, that's why I kept it.)

@sobychacko
Copy link
Contributor

Merged upstream via 3cf3db1

@sobychacko sobychacko closed this Oct 30, 2025
@jonatan-ivanov jonatan-ivanov deleted the thomas-gh-missing-observations-chat-client branch October 30, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants