llama-agent

本贴最后更新于 355 天前,其中的信息可能已经事过境迁
INFO:llama_agents.message_queues.simple - Consumer AgentService-7c0dd6d0-e6ce-4654-950d-28e138718a79: secret_fact_agent has been registered. INFO:llama_agents.message_queues.simple - Consumer HumanService-58e1cd89-252a-43b5-8ac4-84084c076103: default_human_service has been registered. INFO:llama_agents.message_queues.simple - Consumer 55ebeb23-61e4-411e-b5e8-35fe37b20b58: human has been registered. INFO:llama_agents.message_queues.simple - Consumer ControlPlaneServer-729832d3-ae55-4cc1-8a49-96df9799f1b8: control_plane has been registered. INFO:llama_agents.services.agent - secret_fact_agent launch_local INFO:llama_agents.services.human - default_human_service launch_local INFO:llama_agents.message_queues.base - Publishing message to 'control_plane' with action 'ActionTypes.NEW_TASK' DEBUG:llama_agents.message_queues.base - Message: {'id_': '37f53f85-4dae-4b0d-af07-b82d0d11aa17', 'publisher_id': 'LocalLauncher-6b160236-ba03-494b-8803-45b95f220cd8', 'data': {'input': 'What is 5 + 5?', 'task_id': 'e8285c58-5c21-4954-b5e9-f72e4f93180d', 'state': {}, 'agent_id': None}, 'action': <ActionTypes.NEW_TASK: 'new_task'>, 'stats': {'publish_time': None, 'process_start_time': None, 'process_end_time': None}, 'type': 'control_plane'} INFO:llama_agents.message_queues.simple - Launching message queue locally DEBUG:llama_agents.orchestrators.agent - Agent input: What is 5 + 5? DEBUG:llama_agents.orchestrators.agent - Agent response sources: [ToolOutput(content='5 + 5', tool_name='default_human_service', raw_input={'input': '5 + 5'}, raw_output='5 + 5', is_error=False)] DEBUG:llama_agents.control_plane.server - Sending task e8285c58-5c21-4954-b5e9-f72e4f93180d to services: [QueueMessage(id_='f7810df7-438f-45bc-8ffc-beadbc168a88', publisher_id='default', data={'input': '5 + 5', 'task_id': 'e8285c58-5c21-4954-b5e9-f72e4f93180d', 'state': {}, 'agent_id': None}, action=<ActionTypes.NEW_TASK: 'new_task'>, stats=QueueMessageStats(publish_time=None, process_start_time=None, process_end_time=None), type='default_human_service')] INFO:llama_agents.message_queues.base - Publishing message to 'default_human_service' with action 'ActionTypes.NEW_TASK' DEBUG:llama_agents.message_queues.base - Message: {'id_': 'f7810df7-438f-45bc-8ffc-beadbc168a88', 'publisher_id': 'ControlPlaneServer-729832d3-ae55-4cc1-8a49-96df9799f1b8', 'data': {'input': '5 + 5', 'task_id': 'e8285c58-5c21-4954-b5e9-f72e4f93180d', 'state': {}, 'agent_id': None}, 'action': <ActionTypes.NEW_TASK: 'new_task'>, 'stats': {'publish_time': None, 'process_start_time': None, 'process_end_time': None}, 'type': 'default_human_service'} DEBUG:llama_agents.control_plane.server - Task e8285c58-5c21-4954-b5e9-f72e4f93180d created INFO:llama_agents.message_queues.simple - Successfully published message 'control_plane' to consumer. INFO:llama_agents.message_queues.simple - Successfully published message 'default_human_service' to consumer. INFO:llama_agents.services.human - Processing request for human help for task: e8285c58-5c21-4954-b5e9-f72e4f93180d Your assistance is needed. Please respond to the request provided below: === 5 + 5 === 10 INFO:llama_agents.message_queues.base - Publishing message to 'control_plane' with action 'ActionTypes.COMPLETED_TASK' DEBUG:llama_agents.message_queues.base - Message: {'id_': '794d7cc0-7cc7-408c-962f-a13b2acc56bf', 'publisher_id': 'HumanService-58e1cd89-252a-43b5-8ac4-84084c076103', 'data': {'task_id': 'e8285c58-5c21-4954-b5e9-f72e4f93180d', 'history': [{'role': <MessageRole.ASSISTANT: 'assistant'>, 'content': 'Your assistance is needed. Please respond to the request provided below:\n===\n\n5 + 5\n\n===\n', 'additional_kwargs': {}}, {'role': <MessageRole.USER: 'user'>, 'content': '10', 'additional_kwargs': {}}], 'result': '10', 'data': {}}, 'action': <ActionTypes.COMPLETED_TASK: 'completed_task'>, 'stats': {'publish_time': None, 'process_start_time': None, 'process_end_time': None}, 'type': 'control_plane'} DEBUG:llama_agents.orchestrators.agent - Agent input: [ChatMessage(role=<MessageRole.USER: 'user'>, content='What is 5 + 5?', additional_kwargs={}), ChatMessage(role=<MessageRole.ASSISTANT: 'assistant'>, content='The answer is 10.', additional_kwargs={}), ChatMessage(role=<MessageRole.USER: 'user'>, content="Pick the next action to take. Invoke the 'finalize' tool with your full final answer if the answer to the original input is in the chat history. As a reminder, the original input was: What is 5 + 5?", additional_kwargs={})] DEBUG:llama_agents.orchestrators.agent - Agent response sources: [ToolOutput(content='The answer is 10.', tool_name='finalize', raw_input={'input': 'The answer is 10.'}, raw_output='The answer is 10.', is_error=False)] DEBUG:llama_agents.control_plane.server - Sending task e8285c58-5c21-4954-b5e9-f72e4f93180d to services: [QueueMessage(id_='57497d26-27e2-4b1e-99f4-7b52dba7772e', publisher_id='default', data={'task_id': 'e8285c58-5c21-4954-b5e9-f72e4f93180d', 'history': [{'role': <MessageRole.USER: 'user'>, 'content': 'What is 5 + 5?', 'additional_kwargs': {}}, {'role': <MessageRole.ASSISTANT: 'assistant'>, 'content': 'The answer is 10.', 'additional_kwargs': {}}, {'role': <MessageRole.USER: 'user'>, 'content': "Pick the next action to take. Invoke the 'finalize' tool with your full final answer if the answer to the original input is in the chat history. As a reminder, the original input was: What is 5 + 5?", 'additional_kwargs': {}}], 'result': 'The answer is 10.', 'data': {}}, action=<ActionTypes.COMPLETED_TASK: 'completed_task'>, stats=QueueMessageStats(publish_time=None, process_start_time=None, process_end_time=None), type='human')] INFO:llama_agents.message_queues.base - Publishing message to 'human' with action 'ActionTypes.COMPLETED_TASK' DEBUG:llama_agents.message_queues.base - Message: {'id_': '57497d26-27e2-4b1e-99f4-7b52dba7772e', 'publisher_id': 'ControlPlaneServer-729832d3-ae55-4cc1-8a49-96df9799f1b8', 'data': {'task_id': 'e8285c58-5c21-4954-b5e9-f72e4f93180d', 'history': [{'role': <MessageRole.USER: 'user'>, 'content': 'What is 5 + 5?', 'additional_kwargs': {}}, {'role': <MessageRole.ASSISTANT: 'assistant'>, 'content': 'The answer is 10.', 'additional_kwargs': {}}, {'role': <MessageRole.USER: 'user'>, 'content': "Pick the next action to take. Invoke the 'finalize' tool with your full final answer if the answer to the original input is in the chat history. As a reminder, the original input was: What is 5 + 5?", 'additional_kwargs': {}}], 'result': 'The answer is 10.', 'data': {}}, 'action': <ActionTypes.COMPLETED_TASK: 'completed_task'>, 'stats': {'publish_time': None, 'process_start_time': None, 'process_end_time': None}, 'type': 'human'} INFO:llama_agents.message_queues.simple - Successfully published message 'control_plane' to consumer. INFO:llama_agents.message_queues.simple - Successfully published message 'human' to consumer.

image

image

image

image

  • 人工智能

    人工智能(Artificial Intelligence)是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门技术科学。

    115 引用 • 318 回帖

相关帖子

回帖

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...

推荐标签 标签

  • GitBook

    GitBook 使您的团队可以轻松编写和维护高质量的文档。 分享知识,提高团队的工作效率,让用户满意。

    3 引用 • 8 回帖
  • 以太坊

    以太坊(Ethereum)并不是一个机构,而是一款能够在区块链上实现智能合约、开源的底层系统。以太坊是一个平台和一种编程语言 Solidity,使开发人员能够建立和发布下一代去中心化应用。 以太坊可以用来编程、分散、担保和交易任何事物:投票、域名、金融交易所、众筹、公司管理、合同和知识产权等等。

    34 引用 • 367 回帖
  • 印象笔记
    3 引用 • 16 回帖 • 1 关注
  • golang

    Go 语言是 Google 推出的一种全新的编程语言,可以在不损失应用程序性能的情况下降低代码的复杂性。谷歌首席软件工程师罗布派克(Rob Pike)说:我们之所以开发 Go,是因为过去 10 多年间软件开发的难度令人沮丧。Go 是谷歌 2009 发布的第二款编程语言。

    500 引用 • 1396 回帖 • 243 关注
  • 域名

    域名(Domain Name),简称域名、网域,是由一串用点分隔的名字组成的 Internet 上某一台计算机或计算机组的名称,用于在数据传输时标识计算机的电子方位(有时也指地理位置)。

    44 引用 • 208 回帖 • 1 关注
  • JSON

    JSON (JavaScript Object Notation)是一种轻量级的数据交换格式。易于人类阅读和编写。同时也易于机器解析和生成。

    53 引用 • 190 回帖
  • 快应用

    快应用 是基于手机硬件平台的新型应用形态;标准是由主流手机厂商组成的快应用联盟联合制定;快应用标准的诞生将在研发接口、能力接入、开发者服务等层面建设标准平台;以平台化的生态模式对个人开发者和企业开发者全品类开放。

    15 引用 • 127 回帖 • 4 关注
  • WebSocket

    WebSocket 是 HTML5 中定义的一种新协议,它实现了浏览器与服务器之间的全双工通信(full-duplex)。

    48 引用 • 206 回帖 • 284 关注
  • Anytype
    3 引用 • 31 回帖 • 27 关注
  • Follow
    4 引用 • 12 回帖 • 2 关注
  • uTools

    uTools 是一个极简、插件化、跨平台的现代桌面软件。通过自由选配丰富的插件,打造你得心应手的工具集合。

    7 引用 • 28 回帖 • 1 关注
  • Kubernetes

    Kubernetes 是 Google 开源的一个容器编排引擎,它支持自动化部署、大规模可伸缩、应用容器化管理。

    118 引用 • 54 回帖
  • Telegram

    Telegram 是一个非盈利性、基于云端的即时消息服务。它提供了支持各大操作系统平台的开源的客户端,也提供了很多强大的 APIs 给开发者创建自己的客户端和机器人。

    5 引用 • 35 回帖
  • 京东

    京东是中国最大的自营式电商企业,2015 年第一季度在中国自营式 B2C 电商市场的占有率为 56.3%。2014 年 5 月,京东在美国纳斯达克证券交易所正式挂牌上市(股票代码:JD),是中国第一个成功赴美上市的大型综合型电商平台,与腾讯、百度等中国互联网巨头共同跻身全球前十大互联网公司排行榜。

    14 引用 • 102 回帖 • 313 关注
  • RESTful

    一种软件架构设计风格而不是标准,提供了一组设计原则和约束条件,主要用于客户端和服务器交互类的软件。基于这个风格设计的软件可以更简洁,更有层次,更易于实现缓存等机制。

    30 引用 • 114 回帖
  • GitLab

    GitLab 是利用 Ruby 一个开源的版本管理系统,实现一个自托管的 Git 项目仓库,可通过 Web 界面操作公开或私有项目。

    46 引用 • 72 回帖
  • Office

    Office 现已更名为 Microsoft 365. Microsoft 365 将高级 Office 应用(如 Word、Excel 和 PowerPoint)与 1 TB 的 OneDrive 云存储空间、高级安全性等结合在一起,可帮助你在任何设备上完成操作。

    5 引用 • 34 回帖 • 1 关注
  • Ngui

    Ngui 是一个 GUI 的排版显示引擎和跨平台的 GUI 应用程序开发框架,基于
    Node.js / OpenGL。目标是在此基础上开发 GUI 应用程序可拥有开发 WEB 应用般简单与速度同时兼顾 Native 应用程序的性能与体验。

    7 引用 • 9 回帖 • 403 关注
  • Docker

    Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的操作系统上。容器完全使用沙箱机制,几乎没有性能开销,可以很容易地在机器和数据中心中运行。

    497 引用 • 934 回帖
  • Sym

    Sym 是一款用 Java 实现的现代化社区(论坛/BBS/社交网络/博客)系统平台。

    下一代的社区系统,为未来而构建

    524 引用 • 4601 回帖 • 710 关注
  • Node.js

    Node.js 是一个基于 Chrome JavaScript 运行时建立的平台, 用于方便地搭建响应速度快、易于扩展的网络应用。Node.js 使用事件驱动, 非阻塞 I/O 模型而得以轻量和高效。

    139 引用 • 269 回帖 • 2 关注
  • flomo

    flomo 是新一代 「卡片笔记」 ,专注在碎片化时代,促进你的记录,帮你积累更多知识资产。

    6 引用 • 143 回帖
  • 导航

    各种网址链接、内容导航。

    45 引用 • 177 回帖 • 3 关注
  • BookxNote

    BookxNote 是一款全新的电子书学习工具,助力您的学习与思考,让您的大脑更高效的记忆。

    笔记整理交给我,一心只读圣贤书。

    1 引用 • 1 回帖 • 1 关注
  • Openfire

    Openfire 是开源的、基于可拓展通讯和表示协议 (XMPP)、采用 Java 编程语言开发的实时协作服务器。Openfire 的效率很高,单台服务器可支持上万并发用户。

    6 引用 • 7 回帖 • 121 关注
  • Logseq

    Logseq 是一个隐私优先、开源的知识库工具。

    Logseq is a joyful, open-source outliner that works on top of local plain-text Markdown and Org-mode files. Use it to write, organize and share your thoughts, keep your to-do list, and build your own digital garden.

    7 引用 • 69 回帖 • 6 关注
  • CSDN

    CSDN (Chinese Software Developer Network) 创立于 1999 年,是中国的 IT 社区和服务平台,为中国的软件开发者和 IT 从业者提供知识传播、职业发展、软件开发等全生命周期服务,满足他们在职业发展中学习及共享知识和信息、建立职业发展社交圈、通过软件开发实现技术商业化等刚性需求。

    14 引用 • 155 回帖