You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`agentops.interaction.type`| string | Type of interaction (e.g., `message_exchange`, `resource_request`). |`message_exchange`|
73
-
|`agentops.interaction.source`| string | Identifier of the source agent. |`agent-01`|
74
-
|`agentops.interaction.target`| string | Identifier of the target agent. |`agent-02`|
75
-
|`agentops.interaction.status`| string | Outcome of the interaction (e.g., `success`, `error`, `timeout`). |`success`|
129
+
|`ai_agent.interaction.type`| string | Type of interaction (e.g., `message_exchange`, `resource_request`). |`message_exchange`|
130
+
|`ai_agent.interaction.source`| string | Identifier of the source agent. |`agent-01`|
131
+
|`ai_agent.interaction.target`| string | Identifier of the target agent. |`agent-02`|
132
+
|`ai_agent.interaction.status`| string | Outcome of the interaction (e.g., `success`, `error`, `timeout`). |`success`|
76
133
77
134
## Examples
78
135
79
136
### Example 1: Task Execution by a CrewAI Agent
80
137
81
138
-**Span Name**: `task.execution CrewAI`
82
139
-**Attributes**:
83
-
-`agentops.agent.id`: `agent-12345`
84
-
-`agentops.agent.name`: `Data Aggregator`
85
-
-`agentops.agent.type`: `CrewAI`
86
-
-`agentops.session.id`: `session-67890`
87
-
-`agentops.task.id`: `task-abcde`
88
-
-`agentops.task.name`: `Data Ingestion`
89
-
-`agentops.task.state`: `in_progress`
90
-
-`agentops.task.duration`: `1500`
140
+
-`ai_agent.agent.id`: `agent-12345`
141
+
-`ai_agent.agent.name`: `Data Aggregator`
142
+
-`ai_agent.agent.type`: `CrewAI`
143
+
-`ai_agent.session.id`: `session-67890`
144
+
-`ai_agent.task.id`: `task-abcde`
145
+
-`ai_agent.task.name`: `Data Ingestion`
146
+
-`ai_agent.task.state`: `in_progress`
147
+
-`ai_agent.task.duration`: `1500`
91
148
92
149
### Example 2: Interaction Between LangGraph Agents
93
150
94
151
-**Span Name**: `interaction LangGraph`
95
152
-**Attributes**:
96
-
-`agentops.agent.id`: `agent-01`
97
-
-`agentops.agent.name`: `Research Assistant`
98
-
-`agentops.agent.type`: `LangGraph`
99
-
-`agentops.session.id`: `session-12345`
100
-
-`agentops.interaction.type`: `message_exchange`
101
-
-`agentops.interaction.source`: `agent-01`
102
-
-`agentops.interaction.target`: `agent-02`
103
-
-`agentops.interaction.status`: `success`
153
+
-`ai_agent.agent.id`: `agent-01`
154
+
-`ai_agent.agent.name`: `Research Assistant`
155
+
-`ai_agent.agent.type`: `LangGraph`
156
+
-`ai_agent.session.id`: `session-12345`
157
+
-`ai_agent.interaction.type`: `message_exchange`
158
+
-`ai_agent.interaction.source`: `agent-01`
159
+
-`ai_agent.interaction.target`: `agent-02`
160
+
-`ai_agent.interaction.status`: `success`
104
161
105
162
In this example, a `Research Assistant` agent (`agent-01`) of type `LangGraph` engages in a `message_exchange` interaction with another agent (`agent-02`). The interaction is part of `session-12345` and completes successfully.
106
163
107
164
For a practical implementation of multi-agent collaboration using LangGraph, you can refer to the [Multi-Agent Collaboration Example](https://github.com/langchain-ai/langgraph/blob/main/examples/multi_agent/multi-agent-collaboration.ipynb) provided by LangGraph.
0 commit comments