GoogleMapsAgent
What it is
A minimal IntentAgent implementation that provides general guidance about Google Maps capabilities (features, location services, geocoding). It is configured with no tools, so it cannot perform real geocoding, directions, or data retrieval.
Public API
-
create_agent(agent_shared_state: Optional[AgentSharedState] = None, agent_configuration: Optional[AgentConfiguration] = None) -> IntentAgent- Factory that builds and returns a configured
GoogleMapsAgent. - Sets:
name:"Google Maps"description: guidance-focused descriptionsystem_prompt: informs users that tools are not availabletools: empty list ([])intents: two raw intents (feature info; location services/geocoding concepts)state: providedAgentSharedStateor a new oneconfiguration: providedAgentConfigurationor one created withSYSTEM_PROMPTmemory:None
- Factory that builds and returns a configured
-
class GoogleMapsAgent(IntentAgent)- No additional methods or overrides; inherits behavior from
IntentAgent.
- No additional methods or overrides; inherits behavior from
Configuration/Dependencies
- Depends on core agent framework types:
AgentConfiguration,AgentSharedState,Intent,IntentAgent,IntentTypefromnaas_abi_core.services.agent.IntentAgent.
- Uses a chat model:
naas_abi_marketplace.ai.chatgpt.models.gpt_4_1.model(passed aschat_model=model.model).
- Key constants:
SYSTEM_PROMPTexplicitly states no access to Google Maps tools.SUGGESTIONSis defined but empty and unused.
Usage
from naas_abi_marketplace.applications.google_maps.agents.GoogleMapsAgent import create_agent
agent = create_agent()
# Interact with the agent using the IntentAgent interface provided by naas_abi_core.
# (Exact invocation depends on the IntentAgent implementation in your environment.)
print(agent.name) # "Google Maps"
Caveats
- No tools are configured (
tools = []), so the agent cannot:- geocode addresses,
- fetch maps data,
- compute directions,
- retrieve live location information.
- The built-in intents are
IntentType.RAWwith static guidance text (not tool-backed operations).