IWaldiezAgentStore
Defined in: src/waldiez/models/Stores/IAgentStore.ts:14
SPDX-License-Identifier: Apache-2.0 Copyright 2024 - 2025 Waldiez & contributors
PropertiesΒΆ
addAgent()ΒΆ
addAgent: (
agentType,position,parentId) =>WaldiezNodeAgent
Defined in: src/waldiez/models/Stores/IAgentStore.ts:35
Add a new agent to the store.
ParametersΒΆ
agentTypeΒΆ
positionΒΆ
xΒΆ
number
yΒΆ
number
parentIdΒΆ
string | undefined
ReturnsΒΆ
The newly added agent.
SeeΒΆ
addGroupMember()ΒΆ
addGroupMember: (
groupId,agentId,position?) =>void
Defined in: src/waldiez/models/Stores/IAgentStore.ts:109
Add a member to a specific group.
ParametersΒΆ
groupIdΒΆ
string
agentIdΒΆ
string
position?ΒΆ
XYPosition
ReturnsΒΆ
void
cloneAgent()ΒΆ
cloneAgent: (
id) =>WaldiezNodeAgent|null
Defined in: src/waldiez/models/Stores/IAgentStore.ts:46
Clone an existing agent.
ParametersΒΆ
idΒΆ
string
ReturnsΒΆ
WaldiezNodeAgent | null
The cloned agent, or null if the agent was not found.
SeeΒΆ
deleteAgent()ΒΆ
deleteAgent: (
id) =>void
Defined in: src/waldiez/models/Stores/IAgentStore.ts:58
Delete a specific agent from the store.
ParametersΒΆ
idΒΆ
string
ReturnsΒΆ
void
exportAgent()ΒΆ
exportAgent: (
agentId,hideSecrets) =>object
Defined in: src/waldiez/models/Stores/IAgentStore.ts:82
Export a specific agent from the store.
ParametersΒΆ
agentIdΒΆ
string
hideSecretsΒΆ
boolean
ReturnsΒΆ
object
The exported agent data.
getAgentById()ΒΆ
getAgentById: (
id) =>WaldiezNodeAgent|null
Defined in: src/waldiez/models/Stores/IAgentStore.ts:27
Get a specific agent by its ID.
ParametersΒΆ
idΒΆ
string
ReturnsΒΆ
WaldiezNodeAgent | null
The agent with the specified ID, or null if not found.
SeeΒΆ
getAgentConnections()ΒΆ
getAgentConnections: (
nodeId,options?) =>WaldiezAgentConnections
Defined in: src/waldiez/models/Stores/IAgentStore.ts:89
Get the connections of a specific agent.
ParametersΒΆ
nodeIdΒΆ
string
options?ΒΆ
sourcesOnly?ΒΆ
boolean
targetsOnly?ΒΆ
boolean
ReturnsΒΆ
An object containing sources and targets with their respective nodes and edges.
getAgents()ΒΆ
getAgents: () =>
WaldiezNodeAgent[]
Defined in: src/waldiez/models/Stores/IAgentStore.ts:20
Get the stored agents.
ReturnsΒΆ
An array of agents.
SeeΒΆ
getGroupManager()ΒΆ
getGroupManager: () =>
WaldiezNodeAgent|undefined
Defined in: src/waldiez/models/Stores/IAgentStore.ts:129
Get the first available group manager agent node
ReturnsΒΆ
WaldiezNodeAgent | undefined
The first group manager found if any
SeeΒΆ
getGroupMembers()ΒΆ
getGroupMembers: (
groupId) =>WaldiezNodeAgent[]
Defined in: src/waldiez/models/Stores/IAgentStore.ts:102
Get the members of a specific group.
ParametersΒΆ
groupIdΒΆ
string
ReturnsΒΆ
An array of agents in the group.
SeeΒΆ
importAgent()ΒΆ
importAgent: (
agent,agentId,skipLinks,position,save) =>WaldiezNodeAgent
Defined in: src/waldiez/models/Stores/IAgentStore.ts:69
Import an agent into the store.
ParametersΒΆ
agentΒΆ
agentIdΒΆ
string
skipLinksΒΆ
boolean
positionΒΆ
{ x: number; y: number; } | undefined
saveΒΆ
boolean
ReturnsΒΆ
The imported agent.
SeeΒΆ
removeGroupMember()ΒΆ
removeGroupMember: (
groupId,memberId) =>void
Defined in: src/waldiez/models/Stores/IAgentStore.ts:115
Remove a member from a specific group.
ParametersΒΆ
groupIdΒΆ
string
memberIdΒΆ
string
ReturnsΒΆ
void
setAgentGroup()ΒΆ
setAgentGroup: (
agentId,groupId,position?) =>void
Defined in: src/waldiez/models/Stores/IAgentStore.ts:122
Set the group of a specific agent.
ParametersΒΆ
agentIdΒΆ
string
groupIdΒΆ
string
position?ΒΆ
XYPosition
ReturnsΒΆ
void
updateAgentData()ΒΆ
updateAgentData: (
id,data) =>void
Defined in: src/waldiez/models/Stores/IAgentStore.ts:53
Update the data of a specific agent.
ParametersΒΆ
idΒΆ
string
dataΒΆ
Partial\<WaldiezNodeAgentData>
ReturnsΒΆ
void