Skip to content

Commit

Permalink
update Functioncall
Browse files Browse the repository at this point in the history
  • Loading branch information
chengmo authored and chengmo committed Jan 20, 2025
1 parent 3fd3095 commit 26ed3b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/core/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ class FunctionCall(BaseModel, extra='allow'):
thought: str = Field(default="", description="思考结果")
name: str = Field(default="", description="工具名")
arguments: dict = Field(default={}, description="参数列表")
component: Optional[str] = Field(default="", description="组件名class name")


class Json(BaseModel, extra='allow'):
data: str = Field(default="", description="json数据")


class Content(BaseModel):
name: str = Field(default="",
name: Optional[str] = Field(default="",
description="介绍当前yield内容的阶段名, 使用name的必要条件,是同一组件会输出不同type的content,并且需要加以区分,方便前端渲染与用户展示")
visible_scope: str = Field(default="all",
description="为了界面展示明确的说明字段,三种取值:llm、user、all。llm为思考模型可见,类似function calling结果中submit的执行结果,user为终端用户可见,all包含上述两者")
Expand Down

0 comments on commit 26ed3b8

Please sign in to comment.