AgicapAgent
What it is
A thin wrapper around IntentAgent that creates a pre-configured “Agicap” financial analysis/cash-flow agent wired to Agicap integration tools and a set of tool-routing intents.
Public API
create_agent(agent_shared_state: Optional[AgentSharedState] = None, agent_configuration: Optional[AgentConfiguration] = None) -> IntentAgent- Builds and returns an
AgicapAgentconfigured with:- A system prompt embedding available tool names/descriptions
- A ChatGPT model (
gpt_4_1_mini) - Agicap integration tools (via
as_tools(...)) - A predefined list of
Intententries mapping user phrases (FR/EN) to tool targets:agicap_list_companiesagicap_get_company_accountsagicap_get_balanceagicap_get_transactionsagicap_get_debts
- Builds and returns an
class AgicapAgent(IntentAgent)- No additional behavior beyond
IntentAgent(empty subclass).
- No additional behavior beyond
Configuration/Dependencies
- Reads credentials from
naas_abi_marketplace.applications.agicap.ABIModule.get_instance().configuration:agicap_usernameagicap_passwordagicap_bearer_tokenagicap_client_idagicap_client_secretagicap_api_token
- Tooling:
AgicapIntegrationConfiguration+as_toolsfrom...integrations.AgicapIntegration
- Model:
naas_abi_marketplace.ai.chatgpt.models.gpt_4_1_mini.model
- Core agent framework types:
AgentConfiguration,AgentSharedState,Intent,IntentAgent,IntentType
Usage
from naas_abi_marketplace.applications.agicap.agents.AgicapAgent import create_agent
agent = create_agent()
# Use `agent` according to the IntentAgent interface in naas_abi_core.
Caveats
- This module assumes
ABIModuleis properly configured with Agicap credentials; it does not validate or error-handle missing/invalid credentials in this file. AgicapAgentadds no custom methods; behavior depends entirely onIntentAgentand the configured tools/intents.