Package com.aispect.agent.annotation
Annotation Interface AiGraphAgent
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Repeatable(AiGraphAgents.class)
public @interface AiGraphAgent
Mark a backbone route or main process method as a schema AI acting(Graph Agent)entrance.
Graph Agent Responsible for organization Java program. By intercepting the main process or specific routes,
Recognize external incoming instructions or links to initiate complex workflows.
The modified method return value can be Stream<T> Streaming or reactive types, used to distribute node calculation results.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<? extends AiGraphAgentHandler<?,?, value?>> - Returns:
- used to execute the Graph Agent concrete abstract implementation class
-
-
-
instruction
String instruction- Returns:
- Matching natural language instructions or control commands, this is triggered when the input matches the instruction Graph Agent process
- Default:
- ""
-
name
String name- Returns:
- Graph Agent Unique name or identifier for multiple annotations and AiNode Perform matching mapping
- Default:
- ""
-
link
String link- Returns:
- matching routing link or URL,Used to start a workflow based on a specific request path
- Default:
- ""
-
description
String description- Returns:
- Agent Functional description of the node, available as prompt part for larger models to understand this Skill role
- Default:
- ""
-
fallback
String fallback- Returns:
- Fallback The name of the downgrade handling method
- Default:
- ""
-
modelName
String modelName- Returns:
- The model name to be used first. If it is empty, the model name in the configuration file will be used. default model
- Default:
- ""
-