{{agent_name_pascal}}Agent
What it is
- A template
Agentimplementation that instantiates an agent with:- A default system prompt (
SYSTEM_PROMPT) - A ChatGPT-based chat model (
gpt_5) - Empty
toolsandagentslists - Optional shared state and configuration
- A default system prompt (
Public API
class {{agent_name_pascal}}Agent(Agent)@classmethod New(cls, agent_shared_state: Optional[AgentSharedState] = None, agent_configuration: Optional[AgentConfiguration] = None) -> "{{agent_name_pascal}}Agent"- Factory method to create and return a configured agent instance.
- Behavior:
- Imports
naas_abi_marketplace.ai.chatgpt.models.gpt_5.modeland useschatgpt_model.modelaschat_model. - If
agent_configurationis not provided, createsAgentConfiguration(system_prompt=SYSTEM_PROMPT). - If
agent_shared_stateis not provided, creates a newAgentSharedState(). - Constructs the agent with:
name=NAMEdescription=DESCRIPTIONtools=[]agents=[]memory=Nonestate=agent_shared_stateconfiguration=agent_configuration
- Imports
Configuration/Dependencies
- Imports from
naas_abi_core.services.agent.Agent:AgentAgentConfigurationAgentSharedState
- Uses ChatGPT model from:
naas_abi_marketplace.ai.chatgpt.models.gpt_5
- Configuration constants:
NAME = "{{agent_name_pascal}}Agent"DESCRIPTION = "An helpful agent that can help you with your tasks."SYSTEM_PROMPT(multiline string:"You are {{agent_name_pascal}}Agent.")
Usage
from naas_abi_cli.cli.new.templates.agent.{{agent_name_pascal}}Agent import {{agent_name_pascal}}Agent
agent = {{agent_name_pascal}}Agent.New()
print(agent)
Caveats
toolsandagentsare initialized as empty lists; no tool/agent capabilities are added by default.memoryis explicitly set toNone.- Requires the
gpt_5model module import to be available at runtime.