Skip to main content

ModelEngine大语言模型代理工具库

Project description

app-engine

ModelEngine Agents Core

ModelEngine Agents Core 是一个基于 SmoLAgent 的增强版本,提供了丰富的 Agent 工具集和流式输出能力。

主要特性

  • 继承 SmoLAgent 的核心能力
  • 支持多种 Agent 工具:
    • Baidu 搜索/ Google 搜索
    • 格式化输出工具
  • 流式输出支持
  • 基于 FastAPI 的服务端实现
  • 可扩展的消息观察者模式

核心组件

CodeAgentME

代码执行 Agent,支持 Python 代码的解释和执行。

LiteLLMModelME & OpenAIServerModelME

支持多种 LLM 模型的接入。

工具集

  • BaiduSearchTool: 百度搜索工具,通过爬虫实现检索,无需API。
  • GoogleSearchTool: Google搜索工具,通过爬虫实现检索,无需API。
  • EXASearchTool: EXA搜索工具,需要提供API-KEY。
  • DuckDuckGoSearchTool: SmolAgent内置搜索工具,用多了会有速率限制。
  • FinalAnswerFormatTool: 输出格式化工具,支持传入prompt控制输出格式。

MessageObserver

消息观察者模式实现,用于处理 Agent 的流式输出。

使用方式

参考modelengine_agents.core server.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modelengine_agents-0.1.4.tar.gz (193.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modelengine_agents-0.1.4-py3-none-any.whl (230.4 kB view details)

Uploaded Python 3

File details

Details for the file modelengine_agents-0.1.4.tar.gz.

File metadata

  • Download URL: modelengine_agents-0.1.4.tar.gz
  • Upload date:
  • Size: 193.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for modelengine_agents-0.1.4.tar.gz
Algorithm Hash digest
SHA256 808d2bfda024afd367b80191576eefdbbd6f151010c027a512447409a7f75b97
MD5 4cad800f6370170c6745c47e56695b25
BLAKE2b-256 7bf89be8b819cdc8f58c7c38494444753f05b73f700f15bd3b04ea6745091d23

See more details on using hashes here.

File details

Details for the file modelengine_agents-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for modelengine_agents-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee25d479edb7913924a887d90fc9c53757b2673fbe24eae08fa30a081f57d306
MD5 76f193fd1ca6fb89313ff0499677e973
BLAKE2b-256 c5ad570e04e9a22a4ea54bacccdbe46c3b4b61759046cefda769a8c31fb71272

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page