feat: add OpenAI SDK and LangChain framework adapters, implement mnem…#5
Open
Arjxm wants to merge 1 commit intorefactor/code-structurefrom
Open
feat: add OpenAI SDK and LangChain framework adapters, implement mnem…#5Arjxm wants to merge 1 commit intorefactor/code-structurefrom
Arjxm wants to merge 1 commit intorefactor/code-structurefrom
Conversation
…onic and private key wallet adapters, and create example chat agents with policy enforcement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds support for the OpenAI SDK as a framework adapter alongside existing LangChain integration. It introduces a new
OpenAIAdapterfor creating and handling tools in the OpenAI function calling format, updates documentation and import logic, and provides detailed examples for both LangChain and OpenAI SDK usage. The changes improve the framework's flexibility and interoperability with modern agent ecosystems.Framework support and adapters:
OpenAIAdapterclass inagentarc/frameworks/openai_sdk.pyto enable OpenAI SDK function calling integration, including tool schema creation, handler functions, and tool call processing.agentarc/__init__.pyandagentarc/frameworks/__init__.pyto includeOpenAIAdapter, with fallback handling for missing dependencies. [1] [2] [3] [4]Documentation and usage examples:
agentarc/frameworks/__init__.pyto reflect OpenAI SDK support, and provided code examples for both LangChain and OpenAI SDK adapters.LangChain improvements:
LangChainAdapterimplementation inagentarc/frameworks/langchain.pywith methods to create structured tools for transactions, balance checks, and wallet info, along with usage examples.…onic and private key wallet adapters, and create example chat agents with policy enforcement