java.lang.Object
com.agentforge4j.tools.http.HttpToolProviderFactory
- All Implemented Interfaces:
IntegrationToolProviderFactory
Realises
IntegrationType.HTTP_TOOL integrations: builds an HttpToolProvider over the
HttpEndpointDefinitions carried in the config payload (a JSON array, one object per capability).
Secret-header references are resolved at invoke time through the ToolProviderFactoryContext.secretResolver();
the resulting provider id is "http:" + definition.id().
Discovered via ServiceLoader; no connection is opened here — each request is made lazily by the
provider on invocation. This is the config-loaded sibling of the code-defined
AgentForge4jBootstrap.defaults().withToolProviders(...) path, which keeps working unchanged.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(IntegrationDefinition definition, ToolProviderFactoryContext context) Builds the tool provider for an integration of the supported type, interpreting its type-specificconfigJSON with the collaborators supplied bycontext(for example the shared Jackson mapper).Returns the single integration type this contribution realises.
-
Constructor Details
-
HttpToolProviderFactory
public HttpToolProviderFactory()
-
-
Method Details
-
supportedType
Description copied from interface:IntegrationToolProviderFactoryReturns the single integration type this contribution realises.- Specified by:
supportedTypein interfaceIntegrationToolProviderFactory- Returns:
- the supported type, never
null
-
create
Description copied from interface:IntegrationToolProviderFactoryBuilds the tool provider for an integration of the supported type, interpreting its type-specificconfigJSON with the collaborators supplied bycontext(for example the shared Jackson mapper).- Specified by:
createin interfaceIntegrationToolProviderFactory- Parameters:
definition- the integration to realise; its type must equalIntegrationToolProviderFactory.supportedType()context- framework-supplied collaborators; nevernull- Returns:
- a tool provider exposing the integration's capabilities
-