Usage
Running Cultura.js
Start by creating a Cultura client that interacts with Deepseek’s API.
Example Code
The run()
function in Cultura.js is similar to Deepseek's chat.completions.create()
function but with additional features like agent function execution, handoffs, context variables, and multi-turn conversations.
Arguments
Response Fields
Agents
An Agent encapsulates instructions and functions (tools). These agents drive the conversation and can decide whether to hand off to another agent.
Example Code
Functions
Functions enable agents to perform actions like processing transactions, looking up information, or transferring control to other agents. Functions are called when the agent needs to perform a specific task.
Example Code
Handoffs and Context Variables
Agents can transfer control to other agents or update contextVariables
based on the conversation flow.
Example Code
Function Schemas
Cultura.js automatically converts functions into JSON schemas, allowing Deepseek’s API to call the appropriate function based on the tool name.
Example Code
Streaming
You can enable streaming in Cultura.js to receive real-time responses from agents.
Example Code
Evaluations
Cultura.js supports various evaluation methods to test and validate your multi-agent systems. You can find example evaluations in the /examples
directory.
Utils
Use the run_demo_loop
utility to test your agents interactively in a REPL environment.
Example Code
Core Contributors
Pulkit Garg (Node.js adaptation)
Deepseek (original Python framework)
This README now emphasizes that Cultura.js is a Node.js implementation of Deepseek, while maintaining a high standard for documentation and usage clarity.
Last updated