Observed since 20 Oct, 18:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
LLM Agent Framework with tool execution capabilities
A lightweight, flexible Python framework for building LLM agents with tool execution capabilities
⚠️ Experimental Project: This is a personal project currently in an experimental phase. The API may change without notice, and features may be incomplete or unstable. Use at your own discretion.
Acton Agent enables you to build AI agents that can interact with external APIs, execute custom Python functions, and maintain conversation context. With minimal configuration, you can create agents that reason through complex tasks, call tools, and stream responses in real-time.
pip install acton-agent
from acton_agent import Agent, FunctionTool
from acton_agent.client import OpenAIClient
# Create a simple calculator tool
def calculate(a: float, b: float, operation: str) -> float:
ops = {"add": a + b, "subtract": a - b, "multiply": a * b, "divide": a / b}
return ops.get(operation, 0)
# Initialize agent with OpenAI
client = OpenAIClient(api_key="your-key", model="gpt-4o")
agent = Agent(llm_client=client)
# Register the tool
agent.register_tool(FunctionTool(
name="calculator",
description="Perform basic arithmetic operations",
func=calculate,
schema={
"type": "object",
"properties": {
"a": {"type": "number"},
"b": {"type": "number"},
"operation": {"type": "string", "enum": ["add", "subtract", "multiply", "divide"]}
},
"required": ["a", "b", "operation"]
}
))
# Run the agent
result = agent.run("What is 25 multiplied by 4?")
print(result) # "The result of 25 multiplied by 4 is 100."
Create tools from Python functions, HTTP APIs, or custom classes. Organize related tools with ToolSets and shared configuration.
from pydantic import Field
from acton_agent import ToolSet, FunctionTool
from acton_agent.tools import ConfigSchema
# Define configuration schema
class WeatherConfig(ConfigSchema):
api_key: str = Field(..., description="API key for weather service")
# Define tools that use an API key
def get_weather(city: str, api_key: str) -> str:
# api_key will be automatically injected from toolset config
return f"Weather in {city}: Sunny, 72°F"
def get_forecast(city: str, days: int, api_key: str) -> str:
return f"{days}-day forecast for {city}"
# Group related tools with shared configuration
weather_tools = ToolSet(
name="weather",
description="Weather data tools",
tools=[
FunctionTool(
name="current_weather",
description="Get current weather for a city",
func=get_weather,
schema={
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"]
}
),
FunctionTool(
name="forecast",
description="Get weather forecast",
func=get_forecast,
schema={
"type": "object",
"properties": {
"city": {"type": "string"},
"days": {"type": "integer"}
},
"required": ["city", "days"]
}
)
],
config_schema=WeatherConfig,
)
# Set configuration using update_config()
weather_tools.update_config({"api_key": "secret-api-key"})
agent.register_toolset(weather_tools)
Built-in retry logic with exponential backoff for both LLM calls and tool execution.
from acton_agent.agent import RetryConfig
agent = Agent(llm_client=client, retry_config=RetryConfig(max_attempts=5))
Automatic token-based history truncation to stay within context limits.
from acton_agent import SimpleAgentMemory
agent = Agent(llm_client=client, memory=SimpleAgentMemory(max_history_tokens=8000))
Stream agent responses token-by-token for real-time feedback.
from acton_agent.agent import AgentToken
for event in agent.run_stream("Tell me a story"):
if isinstance(event, AgentToken):
print(event.content, end="", flush=True)
Works with OpenAI, OpenRouter, and any OpenAI-compatible API.
from acton_agent import OpenRouterClient
client = OpenRouterClient(api_key="your-key", model="anthropic/claude-3-opus")
Control logging output with the verbose parameter and customize log levels via environment variables.
# Disable logging (default - no output)
agent = Agent(llm_client=client, verbose=False)
# Enable logging at INFO level
agent = Agent(llm_client=client, verbose=True)
# Set custom log level via environment variable
import os
os.environ['ACTON_LOG_LEVEL'] = 'DEBUG' # TRACE, DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICAL
agent = Agent(llm_client=client, verbose=True)
Explore complete examples in the examples/ directory:
MIT License - see LICENSE file for details.
Disclaimer: This is an experimental project. Use at your own risk. No guarantees about stability, security, or fitness for any particular purpose.
pypistats · 64 observations shown. Missing days are unknown. Source category: overall: without mirrors.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-19 – 2026-10-19 | 5 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-18 – 2026-10-18 | 7 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-17 – 2026-10-17 | 29 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-16 – 2026-10-16 | 2 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-15 – 2026-10-15 | 5 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-14 – 2026-10-14 | 11 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-13 – 2026-10-13 | 10 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-12 – 2026-10-12 | 14 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-11 – 2026-10-11 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-10 – 2026-10-10 | 31 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-09 – 2026-10-09 | 30 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-08 – 2026-10-08 | 4 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-07 – 2026-10-07 | 6 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-06 – 2026-10-06 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-05 – 2026-10-05 | 8 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-04 – 2026-10-04 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-03 – 2026-10-03 | 15 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-02 – 2026-10-02 | 10 | 2026-10-20T18:58:53.8424241Z |
| 2026-10-01 – 2026-10-01 | 25 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-30 – 2026-09-30 | 11 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-28 – 2026-09-28 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-27 – 2026-09-27 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-26 – 2026-09-26 | 2 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-24 – 2026-09-24 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-23 – 2026-09-23 | 7 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-22 – 2026-09-22 | 5 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-21 – 2026-09-21 | 5 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-20 – 2026-09-20 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-19 – 2026-09-19 | 51 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-18 – 2026-09-18 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-17 – 2026-09-17 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-16 – 2026-09-16 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-15 – 2026-09-15 | 10 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-12 – 2026-09-12 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-11 – 2026-09-11 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-10 – 2026-09-10 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-09 – 2026-09-09 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-08 – 2026-09-08 | 2 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-07 – 2026-09-07 | 9 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-05 – 2026-09-05 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-04 – 2026-09-04 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-03 – 2026-09-03 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-09-01 – 2026-09-01 | 5 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-31 – 2026-08-31 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-28 – 2026-08-28 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-25 – 2026-08-25 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-24 – 2026-08-24 | 15 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-23 – 2026-08-23 | 4 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-22 – 2026-08-22 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-21 – 2026-08-21 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-20 – 2026-08-20 | 6 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-19 – 2026-08-19 | 12 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-18 – 2026-08-18 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-17 – 2026-08-17 | 2 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-14 – 2026-08-14 | 4 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-13 – 2026-08-13 | 2 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-09 – 2026-08-09 | 9 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-03 – 2026-08-03 | 8 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-02 – 2026-08-02 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-08-01 – 2026-08-01 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-07-27 – 2026-07-27 | 3 | 2026-10-20T18:58:53.8424241Z |
| 2026-07-24 – 2026-07-24 | 4 | 2026-10-20T18:58:53.8424241Z |
| 2026-07-23 – 2026-07-23 | 1 | 2026-10-20T18:58:53.8424241Z |
| 2026-07-22 – 2026-07-22 | 3 | 2026-10-20T18:58:53.8424241Z |
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.23 | 23 Dec 2025 | 12 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:2051e997649dc6976c6c53f3f3f540b0ed11d015f8533c78ef29a1a84e13be6d