
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
agentami
Advanced tools
AgentAmi is a flexible agentic framework built using LangGraph, designed to scale with large numbers of tools and intelligently select the most relevant ones for a given user query. It helps with decreasing token size significantly.
It supports:
Refer the main.py file for a complete sample usage.
pip install agentami
from agentami import AgentAmi
from langchain.chat_models import ChatOpenAI
from langgraph.checkpoint.memory import InMemorySaver
from agentami.agents.ami import AgentAmi
# Replace ... (ellipsis) with the commented instructions
tools = [...] # List of LangChain-compatible tools
agent = AgentAmi(
model=ChatOpenAI(model="gpt-4o"),
tools=tools, # List of LangChain-compatible tools
checkpointer=InMemorySaver(), # Optional. No persistence if omitted.
# Optional parameters:
tool_selector=..., # Custom function to select relevant tools. Defaults to internal tool_selector.
top_k=..., # Number of top tools to use. Defaults to 3.
context_size=..., # Number of past user prompts to retain. Defaults to 7.
disable_pruner=..., # If True, disables pruning & will increase token usage. Defaults to False
prompt_template=... # Custom prompt template. Defaults to a generic bot template.
)
agent_ami = agent.graph # Your regular langgraph's graph.
agent_ami.invoke() or agent_agent_ami.astream() may take time if you have hundreds of tools, because it initialises a vector store and embeds the tool descriptions at runtime for each AgentAmi() objectJust make a function that accepts (query: str, top_k: int) and parameters and returns List[str] #List of tool names.
from typing import List
# function template:
def my_own_tool_selector(query: str, top_k: int) -> List[str]:
# Your logic to select tools based on the query
return ["tool1", "tool2", "tool3"] # Return top_k selected tool names
FAQs
Create an agent that can handle a large number of tools with persistence support.
We found that agentami demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.