Tool-to-Agent Conversion with Coralizer CLI
This example demonstrates how to convert a simple standalone tool into a fully Coralized Agent using the Coralizer CLI. It follows the protocol architecture outlined in the Coral whitepaper, where tools become discoverable and composable agents within the Coral Ecosystem.
Objective
Wrap a local Python function in this case, a markdown text summariser → into a Coral-compliant agent that can:
- Expose the
summarise_markdown
tool - Register with a Coral Server
- Participate in threaded agent communication
Step 1: Install the Coralizer CLI
Step 1: Install the Coralizer CLI
Step 2: Initialise a Coral Agent Project
Step 2: Initialise a Coral Agent Project
This generates a base project structure with:
coral.yaml
: agent metadataagent.py
: the main agent logicrequirements.txt
: for dependencies
Step 3: Add Your Tool Logic
Step 3: Add Your Tool Logic
Edit agent.py
to define your agent’s functionality:
Step 4: Define Metadata in coral.yaml
Step 4: Define Metadata in coral.yaml
Step 5: Register the Agent
Step 5: Register the Agent
Ensure your Coral Server is running, then:
Step 6: Interact with the Agent
Step 6: Interact with the Agent
Send a test message to the agent via thread:
Expected output:
Next Steps
You’ve now converted a basic function into a Coralized Agent. You can:
- Add more tools under the same agent
- Create new agents with complementary roles
- Enable multi-agent interactions with shared threads
This pattern supports rapid onboarding of existing tools and scripts into the Coral Ecosystem.