Skip to main content

XBrain

github.com

XBrain是一个AI漏斗工具,通过自然语言将用户行为模式映射到特定入口,无需编写提示词即可开发大模型应用,支持将本地Python代码接入OpenAI的function call。

AI Chat & Agents#llm-applications#function-call#python-code
Visit website
XBrain preview

xbrain是一个AI漏斗,把巨量用户行为模式映射到少量特定入口。

## ✨特点1. 屏蔽了提示词,让用户专注于业务开发:用户无需编写提示词,就能开发大模型应用;2. 用自然语言开发function call:通过自然语言将本地的python代码接入到openai的function call。## 文档- 指导手册- 开发者文档- 常见问题## 几个有意思的例子# 将任何加减操作映射成两数相加通过xb定义一个加法函数:bashI guess you want to do the following, or chat with me:1. chat with my action2. create a new action3. deploy a chat server4. integrate existing functions into xbrain>>> 2Please tell me, the action you want to do?>>> 两数相加Please wait a moment, I'm generating the code for you...Creation successful!file generated: C:\Users\yuruo\Desktop\test2\add_action.pyadd_action.py文件的内容:pythonfrom xbrain import xbrain_toolfrom pydantic import BaseModel, Fieldclass Add(BaseModel): """Add two numbers""" a: int = Field(..., description="First number") b: int = Field(..., description="Second number")@xbrain_tool.Tool(model=Add)def add(a: int, b: int) -> int: """ Add two numbers. """ return a + b通过xbrain的chat mode可以实现两数相加:pythonI guess you want to do the following, or chat with me:1. chat with my action2. create a new action3. deploy a chat server4. integrate existing functions into xbrain>>> 1Welcome to chat mode!💬 1+1run action: action name: Add action path: C:\Users\yuruo\Desktop\test2\add_action.py action arguments: {'a': 1, 'b': 1} action result: 22然而它也能实现两数相减:python💬 1-1run action: action name: Add action path: C:\Users\yuruo\Desktop\test2\add_action.py action arguments: {'a': 1, 'b': -1} action result: 00它还能实现三数相加减,虽然结果不对但我们看到了它的尝试,这也是我们优化的方向:python💬 1+1+3run action: action name: Add action path: C:\Users\yuruo\Desktop\test2\add_action.py action arguments: {'a': 1, 'b': 1} action result: 2run action: action name: Add action path: C:\Users\yuruo\Desktop\test2\add_action.py action arguments: {'a': 1, 'b': 3} action result: 424

More in AI Chat & Agents

Precision AI OS

AI agents that work inside business tools with shared memory

AI Chat ·

Jev Knows

Free AI that answers your "Should I...?" questions with a yes or no

AI Chat ·

Runable

Turns a request into a finished system through Plan, Build, and Grow stages

AI Chat ·

RIZZ AI

Generates suggested replies from chat screenshots or text input

AI Chat ·

Tavily

Turns a natural-language query into ranked, cleaned, and safety-filtered web

AI Chat ·

Agent Coach

A free training coach for AI agents that matches them to skills and repos

AI Chat ·