akashi_openai 0.3.0 copy "akashi_openai: ^0.3.0" to clipboard
akashi_openai: ^0.3.0 copied to clipboard

OpenAI provider adapter for the Akashi agent framework: wraps openai_dart behind Akashi's LanguageModel contract, normalizing streamed content and tool calls into its union.

Changelog #

0.3.0 #

  • Coordinated 0.3.0 release (tracks akashi 0.3.0).
  • OpenAIProvider.close() releases the shared HTTP client (a no-op when an external client was injected).
  • Complete FinishReason mapping: tool_calls / function_calltoolCalls and content_filtercontentFilter, instead of only length-or-stop.
  • Streaming now honors request.cancel, stopping the upstream drain on cancellation.
  • Malformed tool-call arguments are preserved under _raw rather than silently decoded to an empty map.
  • Uses the shared partsToText / encodeToolOutput helpers from akashi core.

0.2.0 #

Initial release — OpenAI provider adapter over openai_dart.

  • OpenAIProvider + OpenAIModel (LanguageModel, StructuredOutputCapable with jsonSchema/toolMode/promptOnly).
  • Streaming normalization of OpenAI's index-keyed tool-call argument deltas into ToolCallStartPart + ToolCallDeltaPart (reassembled by the loop).
  • responseFormatjson_schema and ToolChoicetool_choice mapping.
  • OpenAIEmbeddingModel + EmbeddingProvider.
  • Offline tests against a mock HTTP client; a runnable example/.
0
likes
150
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OpenAI provider adapter for the Akashi agent framework: wraps openai_dart behind Akashi's LanguageModel contract, normalizing streamed content and tool calls into its union.

Repository (GitHub)
View/report issues

Topics

#ai #agents #llm #openai

License

MIT (license)

Dependencies

akashi, openai_dart

More

Packages that depend on akashi_openai