Skip to content
Open
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
9 changes: 8 additions & 1 deletion packages/agentflow/src/core/node-config/nodeIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
IconPlayerPlayFilled,
IconRelationOneToManyFilled,
IconRepeat,
IconReplace,
IconReplaceUser,
IconRobot,
IconSparkles,
Expand Down Expand Up @@ -109,6 +110,11 @@ export const AGENTFLOW_ICONS: AgentflowIcon[] = [
name: 'executeFlowAgentflow',
icon: IconVectorBezier2,
color: tokens.colors.nodes.executeFlow
},
{
name: 'a2aRemoteAgentAgentflow',
icon: IconReplace,
color: tokens.colors.nodes.a2aRemoteAgent
}
]

Expand All @@ -130,5 +136,6 @@ export const DEFAULT_AGENTFLOW_NODES = [
'stickyNoteAgentflow',
'httpAgentflow',
'iterationAgentflow',
'executeFlowAgentflow'
'executeFlowAgentflow',
'a2aRemoteAgentAgentflow'
]
4 changes: 3 additions & 1 deletion packages/agentflow/src/core/theme/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const baseColors = {
nodeHttp: '#FF7F7F',
nodeIteration: '#9C89B8',
nodeExecuteFlow: '#a3b18a',
nodeA2aRemoteAgent: '#83C5BE',

// Gradient colors
gradientOrange: '#FF6B6B',
Expand All @@ -125,7 +126,8 @@ export const tokens = {
stickyNote: baseColors.nodeStickyNote,
http: baseColors.nodeHttp,
iteration: baseColors.nodeIteration,
executeFlow: baseColors.nodeExecuteFlow
executeFlow: baseColors.nodeExecuteFlow,
a2aRemoteAgent: baseColors.nodeA2aRemoteAgent
},

// Semantic UI colors - referenced from base
Expand Down
57 changes: 57 additions & 0 deletions packages/components/credentials/A2AAgent.credential.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import { INodeParams, INodeCredential } from '../src/Interface'

class A2AAgentCredential implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]

constructor() {
this.label = 'A2A Agent'
this.name = 'a2aAgentCredential'
this.version = 1.0
this.description = 'Authenticate with a remote A2A protocol agent'
this.inputs = [
{
label: 'Auth Type',
name: 'authType',
type: 'options',
options: [
{
label: 'API Key',
name: 'apiKey'
},
{
label: 'Bearer Token',
name: 'bearer'
}
]
},
{
label: 'API Key',
name: 'apiKey',
type: 'password',
description: 'API key for the remote A2A agent (used when Auth Type is API Key)',
optional: true
},
{
label: 'API Key Header Name',
name: 'apiKeyHeaderName',
type: 'string',
default: 'X-API-Key',
description: 'HTTP header name to send the API key in',
optional: true
},
{
label: 'Bearer Token',
name: 'bearerToken',
type: 'password',
description: 'Bearer token for the remote A2A agent (used when Auth Type is Bearer Token)',
optional: true
}
]
}
}

module.exports = { credClass: A2AAgentCredential }
Loading
Loading