browser-use webui源代码 读书日记

 进入main

看到run agent了,gr.row里面没东西

找run agent按钮对应代码,run button变量查找引用

进入run with stream

进入run browser agent

进入 run custom agent 转到定义

用到browser use了

找不到 playwright的使用了,直接搜索playwright,发现browser有用到playwright的browser

接之前controller

controller service 里有click eliment,有一种selenium的美    registry.action

controller这个类就是个selenium工具库,找一下agent是怎么调用controller的

customagent传入controller

customagent继承于agent   ‘log response方法前已经得到了动作

查找引用 get_next_action

大模型消息处理应该就是用到这个with_structured_output,找他的输入agentoutput

连接上controller的action了,应该就是这个了

-------------------------------------------------------------------------------------------------------------------------

agent.run转到实现

run用到了controller的multi act方法

multi act用到了act方法

act执行行动execute action     

接下来就是找action:actionmodel是哪里来的

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值