Package com.embabel.agent.web.rest
Class PlatformInfoController
-
- All Implemented Interfaces:
@RestController()@RequestMapping(value = {"/api/v1/platform-info"}) public final class PlatformInfoControllerProvides endpoints to retrieve general platform information, including agents, goals, actions, and conditions.
-
-
Constructor Summary
Constructors Constructor Description PlatformInfoController(AgentPlatform agentPlatform, ModelProvider modelProvider)
-
Method Summary
Modifier and Type Method Description final List<AgentMetadata>getAgents()Returns a list of all agents deployed on the platform. final Set<Goal>getGoals()Returns a list of all goals known to the platform (across all agents). final List<ActionMetadata>getActions()Returns a list of all actions available on the platform (across all agents). final PlatformInfoSummarygetPlatformInfo()Returns general platform information, including the number of agents, actions, goals, and conditions. final Set<ConditionMetadata>getConditions()Returns a list of all conditions available on the platform (across all agents). final List<ModelMetadata>getModels()Returns a list of all models available on the platform (across all agents). final List<ToolGroupMetadata>getToolGroups()-
-
Constructor Detail
-
PlatformInfoController
PlatformInfoController(AgentPlatform agentPlatform, ModelProvider modelProvider)
-
-
Method Detail
-
getAgents
@GetMapping(value = {"/agents"}) final List<AgentMetadata> getAgents()Returns a list of all agents deployed on the platform.
- Returns:
List of agents with their details
-
getGoals
@GetMapping(value = {"/goals"}) final Set<Goal> getGoals()Returns a list of all goals known to the platform (across all agents).
- Returns:
List of goals
-
getActions
@GetMapping(value = {"/actions"}) final List<ActionMetadata> getActions()Returns a list of all actions available on the platform (across all agents).
- Returns:
List of actions
-
getPlatformInfo
@GetMapping(value = {""}) final PlatformInfoSummary getPlatformInfo()Returns general platform information, including the number of agents, actions, goals, and conditions.
- Returns:
Platform information summary
-
getConditions
@GetMapping(value = {"/conditions"}) final Set<ConditionMetadata> getConditions()Returns a list of all conditions available on the platform (across all agents).
- Returns:
List of conditions
-
getModels
@GetMapping(value = {"/models"}) final List<ModelMetadata> getModels()Returns a list of all models available on the platform (across all agents).
- Returns:
List of conditions
-
getToolGroups
@GetMapping(value = {"/tool-groups"}) final List<ToolGroupMetadata> getToolGroups()
-
-
-
-