Skip to content
Discussion options

You must be logged in to vote

Also, for the sake of completeness - the other way to log outbound data is constructing your own EndpointProvider, which is really simple:

TornadoApi api = new TornadoApi(new AnthropicEndpointProvider // or GoogleEndpointProvider for Gemini
{
    Auth = new ProviderAuthentication("YOUR_API_KEY"),
    RequestResolver = (request, data, streaming) =>
    {
         // log here, "request" has the payload serialized, "data" references the underlying object
    },
    RequestSerializer = (data, ctx) =>
    {
        // can be used to transform outbound requests if needed
    }
});

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@JP-droidic
Comment options

@lofcz
Comment options

Comment options

You must be logged in to vote
1 reply
@JP-droidic
Comment options

Answer selected by JP-droidic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants