GEO INFER APP

From ActiveInferenceInstitute/GEO-INFER · View interactive version

GEO INFER APP is an AI agent skill from the GitHub repository ActiveInferenceInstitute/GEO-INFER. Agent UI and management layer for GEO-INFER. Use when building agent control widgets, agent configuration forms, geospatial agent visualization (GeoJSON map features), or managing in-process agent lifecycles (create/start/stop/command) via AgentManager.

How to use this skill

Skill file

GEO-INFER-APP

Instructions

Core Capabilities

Key Imports

from geo_infer_app import AgentManager, AgentFactory, AgentType
from geo_infer_app.models.interfaces.bdi_interface import BDIAgentInterface
from geo_infer_app.models.agent_visualization import AgentVisualization
from geo_infer_app.components.agent_widget import AgentWidget, WebAgentWidget
from geo_infer_app.components.agent.agent_config_form import AgentConfigForm
from geo_infer_app.models.agent_configuration import AgentConfiguration, ConfigFieldType

Examples

Create and drive an in-process BDI agent through the manager:

import asyncio
from geo_infer_app import AgentManager

async def main():
    manager = AgentManager(config={
        "api_config": {"agents_config_path": "/tmp/agents.json"}
    })
    await manager.initialize()

    agent_id = await manager.create_agent(
        agent_type="bdi",
        name="Spatial Monitor",
        config={"name": "Spatial Monitor", "description": "Monitors a location"},
    )
    await manager.start_agent(agent_id)
    result = await manager.send_command(agent_id, "query", {})
    print(result["result"])  # {"id": ..., "type": "bdi", "status": "running", ...}

    await manager.shutdown()

asyncio.run(main())

Render an agent state as a GeoJSON map feature:

from geo_infer_app import AgentFactory, AgentType, AgentVisualization

interface = AgentFactory.create_interface(AgentType.BDI)
agent_id = interface.create_agent(AgentType.BDI, {
    "name": "Explorer",
    "initial_location": {"lat": 40.7128, "lng": -74.0060},
})
state = interface.get_agent_state(agent_id)
feature = AgentVisualization.state_to_map_feature(state)  # GeoJSON Point, [lng, lat]

Non-goals (not part of this module)

Agent interfaces

Use uv run --frozen geo-infer catalog APP to discover public source

APIs, then geo-infer describe before calling a selected target. Scripts use

geo_infer_api.agent_runtime.AgentSession; the optional stdio MCP server is

geo-infer-mcp. See requests, native objects and composition.

The adapter retains this module's dependencies and authorization requirements.

Guidelines

other non-JSON native values stringify consistently; nonfinite floating values

raise ValueError before a payload is returned. Prepare missing values in the

caller when needed rather than sending NaN/Infinity to a browser.

Integrations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.