Skip to content

useXAgent 支持额外参数 传递 #536

Open
@OnceCrazyer

Description

需求动机

因为自己编写了智能体工作流,传递参数时不仅仅只是传递message,需要传输额外的参数,发现 useXAgent 得request不支持,同时想获取全局参数,一直获取不到动态修改后的数据,一直为空

提议的 API 是什么样的?

const [inputParams, setInputParams] = useState({});
Image

希望可以 request中除了message之外可以增加额外一个参数的传递,或者如何可以获取到动态修改后的inputParams 值

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions