github 0xPlaygrounds/rig rig-core-v0.16.0

latest releases: v0.46.0, v0.46.0-rc.1, v0.45.0...
15 months ago

Added

  • (rig-798) rig-wasm (#611)
  • (rig-819) vector store index request struct (#623)
  • (rig-830) map documents to text for OpenAI Response API (#622)
  • Add GROK_4 model constant to xAI provider (#614)
  • (rig-812) yield final response with total usage metrics from streaming completion response in stream impl (#584)
  • (rig-799) add support for official rust sdk for mcp (#553)
  • (rig-823) impl size hint for OneOrMany types (#606)
  • (rig-784) thinking/reasoning (#557)
  • (rig-821) add tracing when submit tool is never called in extractor (#603)
  • make PromptResponse public (#593)

Fixed

  • (rig-824) ToolResultContent should be serde-tagged (#621)
  • (rig-828) support done message on openai streaming completions api (#619)
  • (rig-827) openai responses streaming api placeholder panic (#620)
  • (rig-834) erroeneous tracing log level (#626)
  • (rig-820) ensure call ID is properly propagated (#601)

Other

  • Add new claude models and default max tokens (#634)
  • (rig-836) deprecate mcp-core integration (#631)
  • Refactor clients with builder pattern (#615)
  • change log level to debug for input/output (#627)
  • fix spelling issue (#607)

Migration

  • If you are using Client::from_url(), you will now need to use Client::builder() and add it in from there. Otherwise if you don't care about changing your inner HTTP client or changing the base URL, you can still use Client::new(<api_key_here>) or Client::from_env() to achieve the same result as you normally would.
  • VectorStoreIndex and VectorStoreIndexDyn now take a rig::vector_search::VectorSearchRequest, instead of a query and max result size. This has been done to enable much more ergonomic requesting in the future. Please see any of the vector_search examples for practical usage.
  • The final response of a completion stream now yields the completion usage from the stream itself. You may wish to adjust your code to account for this.
  • The mcp-core integration is now officially deprecated because the official Rust MCP SDK is now supported as it has feature parity. You will need to ensure you have moved to the rmcp integration (rmcp feature flag) by Rig 0.18.0 at the earliest.
  • ToolResultContent is now #[serde(tag = "type")]. If you're storing the serialized Rig structs anywhere as JSON, you may need to account for this and write a script to backfill your stored JSON.

Don't miss a new rig release

NewReleases is sending notifications on new releases.