Skip to content

Next-generation AI Agent Optimization Platform: Cozeloop addresses challenges in AI agent development by providing full-lifecycle management capabilities from development, debugging, and evaluation to monitoring.

License

Notifications You must be signed in to change notification settings

coze-dev/coze-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Image

What is Coze Loop

Coze Loop is a developer-oriented, platform-level solution focused on the development and operation of AI agents. It addresses various challenges faced during the AI agent development process, providing full lifecycle management capabilities from development, debugging, evaluation, to monitoring.

Based on the commercial version, Coze Loop introduces an open-source edition that offers developers free access to core foundational feature modules. By sharing its core technology framework in an open-source model, developers can customize and extend according to business needs, facilitating community co-construction, sharing, and exchange, helping developers participate in AI agent exploration and practice with zero barriers.

What can Coze Loop do?

Coze Loop helps developers develop and operate AI Agent more efficiently by providing full lifecycle management capabilities. Whether it is prompt engineering, AI Agent evaluation, or monitoring and optimization after deployment, Coze Loop provides powerful tools and intelligent support, greatly simplifying the development process of AI Agents and enhancing their operational performance and stability.

  • Prompt development: The Prompt development module of Coze Loop provides developers with end-to-end support for writing, debugging, optimizing, and version management. Through a visual Playground, it enables real-time interactive testing of prompts, allowing developers to intuitively compare the output of different LLMs.
  • Evaluation: The Coze Loop evaluation module provides developers with systematic evaluation capabilities, enabling automated multi-dimensional testing of prompts and Coze agents' output, such as accuracy, conciseness, compliance, and more.
  • Observability: Coze Loop provides developers with observability for the entire execution process, fully recording every stage from user input to AI output, including key stages such as prompt parsing, model invocation, and tool execution, and automatically capturing intermediate results and exceptions.

Feature list

Feature Functional points
Prompt debugging * Playground debugging and comparison
* Prompt version management
Evaluation * Manage evaluation sets
Management evaluator
* Manage experiments
Observation SDK trace reporting
* Trace data observation
Model Support integration with OpenAI, Volcengine Ark, and other models

Quick Start

Refer to Quick Start to learn in detail how to install and deploy the latest version of Coze Loop.

Deployment method 1: Docker deployment (Docker Compose)

Please install and start Docker Engine before you start.

Procedure:

  1. Clone the source code. Run the following command to obtain the latest version of the Coze Loop source code.

    # Clone the code
    git clone https://github.com/coze-dev/coze-loop.git
    
    # Enter the coze-loop directory
    cd coze-loop 
  2. Configure a model.

    1. Enter the coze-loop directory.
    2. Edit the file release/deployment/docker-compose/conf/model_config.yaml.
    3. Modify the api_key and model fields. Take Volcengine Ark as an example:
  3. Start the service. Run the following commands to quickly deploy the open-source version of Coze Loop using Docker Compose.

    # Start the service (default: development mode)
    # Run in the coze-loop/ directory
    make compose-up 
  4. Access the Coze Loop open-source version through your browser http://localhost:8082.

Deployment method 2: Kubernetes deployment using Helm Chart

  • The Kubernetes cluster has been prepared, the Nginx Ingress add-ons have been enabled, and the Kubectl and Helm tools have been installed.
  • To quickly try it out locally, you can deploy a Kubernetes cluster using Minikube. For detailed steps, refer to Quick Start.

Procedure:

  1. Run the following command to obtain the Helm Chart package.

    helm pull oci://docker.io/cozedev/coze-loop --version 1.0.0-helm
    tar -zxvf coze-loop-1.0.0-helm.tgz && cd coze-loop && rm -f ../coze-loop-1.0.0-helm.tgz
  2. Configure a model. Go to the coze-loop directory and edit the release/deployment/docker-compose/conf/model_config.yaml file. Configure the following fields, using Volcengine Ark as an example:

  3. Configure Ingress rules. Ingress is used to expose services to external networks. You need to configure the templates/ingress.yaml file in the project directory according to the actual cluster situation, manually modify parameters such as ingressClassName, and configure elements such as class, instance, host, and IP allocation.

  4. Deploy and start the service. Execute the following commands to quickly deploy the open-source version of Coze Loop using Helm.

    # Run in the coze-loop/ directory
    make helm-up
    # After the service deployment is complete, check the status of the cluster pods
    make helm-pod
    # Check the service startup logs. If both the app and nginx are running normally, the deployment is successful
    make helm-logf-app
    make helm-logf-nginx
  5. Access the Coze Loop open source edition via a browser. The access domain name and URL depend on the domain name and URL assigned to your cluster.

  6. Start customizing your Coze Loop project. Refer to the examples in the examples/ directory. Modify values.yaml to override the default settings. After making changes, rerun make helm-up for the changes to take effect.

Use the Coze Loop open source version

  • Prompt development and debugging: Coze Loop provides a complete prompt development workflow.
  • Evaluation: The evaluation functionality of Coze Loop provides standard evaluation data management, an automated evaluation engine, and comprehensive statistics on experimental results.
  • Trace reporting and query: Coze Loop supports automatic reporting of traces from prompt debugging sessions created on the platform, enabling real-time tracking of each trace.
  • Open-source Edition usage of the Coze Loop SDK: The Coze Loop SDK in three languages is suitable for both commercial and open-source editions. For the Open-source Edition, developers only need to modify some parameter configurations during initialization.

Developer guide

  • System architecture: Learn about the technical architecture and core components of Coze Loop Open-source Edition.
  • Startup mode: When installing and deploying Coze Loop Open-source Edition, the default development mode allows backend file modifications without requiring service redeployment.
  • Model configuration: Coze Loop Open-source Edition supports various LLM models through the Eino framework. Refer to this document to view the supported model list and learn how to configure models.
  • Code development and testing: Learn how to perform secondary development and testing based on Coze Loop Open-source Edition.
  • Fault troubleshooting: Learn how to check container status and system logs.

License

This project uses the Apache 2.0 license. For more details, please refer to the LICENSE file.

Community Contributions

We welcome community contributions. For contribution guidelines, please refer to CONTRIBUTING and Code of conduct. We look forward to your contributions!

Security and Privacy

If you identify potential security issues in this project or believe you may have found one, please notify Bytedance's security team via our Security Center or Vulnerability Report Email.

Please do not create public GitHub Issues.

Join the Community

We are committed to building an open and friendly developer community. All developers interested in AI Agent development are welcome to join us!

Issue Reports & Feature Requests

To efficiently track and resolve issues while ensuring transparency and collaboration, we recommend participating through:

Technical Discussion & Communication

Join our technical discussion groups to share experiences with other developers and stay updated with the latest project developments:

  • Lark Group Chat: Scan the QR code below on the Lark mobile app to join the Coze Loop technical discussion group.

Image

Acknowledgments

Thanks to all developers and community members who contributed to the Coze Loop project Special thanks:

  • LLM integration support provided by the Eino framework team
  • High-performance frameworks developed by the CloudWeGo team
  • All users who participated in testing and feedback

About

Next-generation AI Agent Optimization Platform: Cozeloop addresses challenges in AI agent development by providing full-lifecycle management capabilities from development, debugging, and evaluation to monitoring.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 9