进入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是哪里来的