Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/breezy-jobs-feel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inkeep/agents-manage-ui": minor
---

add sentry logs about unexpected behavior of data animations
13 changes: 10 additions & 3 deletions agents-manage-ui/src/features/agent/state/use-agent-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from '@/components/agent/configuration/node-types';
import type { ArtifactComponent } from '@/lib/api/artifact-components';
import type { DataComponent } from '@/lib/api/data-components';
import { sentry } from '@/lib/sentry';
import type {
AgentToolConfigLookup,
SubAgentExternalAgentConfigLookup,
Expand Down Expand Up @@ -439,7 +440,9 @@ const agentState: StateCreator<AgentState> = (set, get) => ({
const { relationshipId } = data.details.data;
const { subAgentId } = data.details;
if (!relationshipId) {
console.warn('[type: tool_call] relationshipId is missing');
const error = new Error('[type: tool_call] relationshipId is missing');
sentry.captureException(error, { extra: data });
console.warn(error);
}
return {
edges: updateEdgeStatus((edge) => {
Expand All @@ -459,7 +462,9 @@ const agentState: StateCreator<AgentState> = (set, get) => ({
case 'error': {
const { relationshipId } = data.details ?? {};
if (!relationshipId) {
console.warn('[type: error] relationshipId is missing');
const error = new Error('[type: error] relationshipId is missing');
sentry.captureException(error, { extra: data });
console.warn(error);
}
return {
nodes: updateNodeStatus((node) =>
Expand All @@ -473,7 +478,9 @@ const agentState: StateCreator<AgentState> = (set, get) => ({
const { error, relationshipId } = data.details.data;
const { subAgentId } = data.details;
if (!relationshipId) {
console.warn('[type: tool_result] relationshipId is missing');
const error = new Error('[type: tool_result] relationshipId is missing');
sentry.captureException(error, { extra: data });
console.warn(error);
}
return {
edges: updateEdgeStatus((edge) => {
Expand Down
14 changes: 12 additions & 2 deletions packages/agents-core/src/data-access/manage/agentFull.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { and, eq, inArray, not } from 'drizzle-orm';
import type { AgentsManageDatabaseClient } from '../../db/manage/manage-client';
import { projects, subAgents, subAgentToolRelations, subAgentFunctionToolRelations } from '../../db/manage/manage-schema';
import {
projects,
subAgentFunctionToolRelations,
subAgents,
subAgentToolRelations,
} from '../../db/manage/manage-schema';
import type { FullAgentDefinition, FullAgentSelectWithRelationIds } from '../../types/entities';
import type { AgentScopeConfig, ProjectScopeConfig } from '../../types/utility';
import { generateId } from '../../utils/conversations';
Expand All @@ -25,7 +30,12 @@ import {
upsertAgentDataComponentRelation,
} from './dataComponents';
import { upsertFunction } from './functions';
import { deleteFunctionTool, listFunctionTools, upsertFunctionTool, upsertSubAgentFunctionToolRelation } from './functionTools';
import {
deleteFunctionTool,
listFunctionTools,
upsertFunctionTool,
upsertSubAgentFunctionToolRelation,
} from './functionTools';
import {
deleteSubAgentExternalAgentRelation,
getSubAgentExternalAgentRelationsByAgent,
Expand Down