Updated and supported automatically if there are no breaking changes
All modern .NET features - nullability, trimming, NativeAOT, etc.
Support .Net Framework/.Net Standard 2.0
Usage
123
usingWeave;usingvarclient=newWeaveClient(apiKey);
Generate
12345678
varapiKey=Environment.GetEnvironmentVariable("WANDB_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("WANDB_API_KEY environment variable is not found.");usingvarclient=newWeaveClient(apiKey);// The client provides access to all Weave API endpoints.
MeaiTools
1 2 3 4 5 6 7 8 910111213141516171819
varapiKey=Environment.GetEnvironmentVariable("WANDB_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("WANDB_API_KEY environment variable is not found.");usingvarclient=newWeaveClient(apiKey);// Create AIFunction tools for LLM observability.varlistCallsTool=client.AsListCallsTool();vargetCallTool=client.AsGetCallTool();varlistObjectsTool=client.AsListObjectsTool();varqueryTableTool=client.AsQueryTableTool();varaddFeedbackTool=client.AsAddFeedbackTool();vargetCallStatsTool=client.AsGetCallStatsTool();