Skip to content

Commit 8ef0f94

Browse files
committed
init
1 parent 9c5fd71 commit 8ef0f94

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/agentex/lib/cli/handlers/run_handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ def create_agent_environment(manifest: AgentManifest) -> dict[str, str]:
372372
"ACP_PORT": str(manifest.local_development.agent.port), # type: ignore[union-attr]
373373
}
374374

375+
if manifest.agent.agent_input_type:
376+
env_vars["AGENT_INPUT_TYPE"] = manifest.agent.agent_input_type
377+
375378
# Add authorization principal if set - for local development, auth is optional
376379
from agentex.lib.cli.utils.auth_utils import _encode_principal_context
377380
encoded_principal = _encode_principal_context(manifest)

src/agentex/lib/environment_variables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class EnvVarKeys(str, Enum):
3838
AUTH_PRINCIPAL_B64 = "AUTH_PRINCIPAL_B64"
3939
# Build Information
4040
BUILD_INFO_PATH = "BUILD_INFO_PATH"
41+
AGENT_INPUT_TYPE = "AGENT_INPUT_TYPE"
4142

4243

4344
class Environment(str, Enum):
@@ -61,6 +62,7 @@ class EnvironmentVariables(BaseModel):
6162
AGENT_ID: str | None = None
6263
AGENT_API_KEY: str | None = None
6364
ACP_TYPE: str | None = "agentic"
65+
AGENT_INPUT_TYPE: str | None = None
6466
# ACP Configuration
6567
ACP_URL: str
6668
ACP_PORT: int = 8000

src/agentex/lib/sdk/config/agent_config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class AgentConfig(BaseModel):
1919
pattern=r"^[a-z0-9-]+$",
2020
)
2121
acp_type: Literal["sync", "agentic"] = Field(..., description="The type of agent.")
22+
agent_input_type: Literal["text", "json"] | None = Field(
23+
default=None,
24+
description="The type of input the agent accepts."
25+
)
2226
description: str = Field(..., description="The description of the agent.")
2327
env: dict[str, str] | None = Field(
2428
default=None, description="Environment variables to set directly in the agent deployment"

src/agentex/lib/utils/registration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ async def register_agent(env_vars: EnvironmentVariables):
5656

5757
if env_vars.AGENT_ID:
5858
registration_data["agent_id"] = env_vars.AGENT_ID
59+
if env_vars.AGENT_INPUT_TYPE:
60+
registration_data["agent_input_type"] = env_vars.AGENT_INPUT_TYPE
5961

6062
# Make the registration request
6163
registration_url = f"{env_vars.AGENTEX_BASE_URL.rstrip('/')}/agents/register"

0 commit comments

Comments
 (0)