Skip to content

Commit

Permalink
add reminder for openai api usage in example
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Mar 15, 2024
1 parent 788eb7d commit c0f48cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/compatible_with_langchain/READMD.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ to create agents with third-party libraries.
In this example, we will show how to create an assistant agent with
LangChain in AgentScope, and interact with user in a conversation.

**Note** we use OpenAI API for LangChain in this example. Developers can
modify it according to their own needs.

## Install LangChain

Before running the example, please install LangChain by the following command:
Expand All @@ -22,5 +25,3 @@ In its `reply` function, developers only need parse the input message and
wrap the output message into `agentscope.message.Msg` class.
After that, developers can build the conversation in AgentScope, and the
`LangChainAgent` is the same as other agents in AgentScope.


0 comments on commit c0f48cb

Please sign in to comment.