This commit is contained in:
15
agent.py
15
agent.py
@@ -26,7 +26,8 @@ from typing import Any
|
||||
from pydantic import BaseModel
|
||||
|
||||
from a2a_pack import (
|
||||
A2AAgent, LLMProvisioning, NoAuth, Pricing, RunContext, skill,
|
||||
A2AAgent, LLMProvisioning, NoAuth, Pricing, RunContext, WorkspaceAccess,
|
||||
WorkspaceMode, skill,
|
||||
)
|
||||
|
||||
from agent_builder import BuilderContext, build_agent_builder
|
||||
@@ -54,6 +55,9 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
|
||||
tools_used = ("deepagents", "langgraph", "a2a-pack", "litellm", "microsandbox")
|
||||
llm_provisioning = LLMProvisioning.CALLER_PROVIDED
|
||||
wants_cp_jwt = True
|
||||
workspace_access = WorkspaceAccess.dynamic(
|
||||
allowed_modes=(WorkspaceMode.READ_ONLY, WorkspaceMode.READ_WRITE_OVERLAY),
|
||||
)
|
||||
pricing = Pricing(
|
||||
price_per_call_usd=0.10,
|
||||
caller_pays_llm=True,
|
||||
@@ -68,6 +72,15 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
|
||||
),
|
||||
tags=["builder", "scaffold", "deepagents", "meta"],
|
||||
stream=True,
|
||||
timeout_seconds=1800,
|
||||
cost_class="expensive",
|
||||
grant_mode="read_write_overlay",
|
||||
grant_allow_patterns=("agents/{name}/**",),
|
||||
grant_outputs_prefix="agents/{name}/",
|
||||
grant_ttl_seconds=1800,
|
||||
grant_run_timeout_seconds=1740,
|
||||
grant_approval_timeout_seconds=180,
|
||||
grant_scope_approval_timeout_seconds=120,
|
||||
)
|
||||
async def build(
|
||||
self,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
a2a-pack>=0.1.17
|
||||
a2a-pack>=0.1.18
|
||||
httpx>=0.27
|
||||
boto3>=1.34
|
||||
deepagents>=0.5.0
|
||||
|
||||
Reference in New Issue
Block a user