a2a-source-edit: write agent.py
This commit is contained in:
5
agent.py
5
agent.py
@@ -42,11 +42,12 @@ APPROVAL_PHRASE = "I_APPROVE_THE_LISTED_STEPS"
|
|||||||
OUTPUT_ROOT = "outputs/integrations"
|
OUTPUT_ROOT = "outputs/integrations"
|
||||||
SECRET_WORDS = ("secret", "token", "password", "passwd", "apikey", "api_key", "authorization", "bearer")
|
SECRET_WORDS = ("secret", "token", "password", "passwd", "apikey", "api_key", "authorization", "bearer")
|
||||||
|
|
||||||
_PUBLIC_REQUEST_SCHEMA: dict[str, Any] = {
|
def _tool_input_schema(request_model: type[BaseModel]) -> dict[str, Any]:
|
||||||
|
return {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["request"],
|
"required": ["request"],
|
||||||
"additionalProperties": False,
|
"additionalProperties": False,
|
||||||
"properties": {"request": {"type": "object", "additionalProperties": True}},
|
"properties": {"request": request_model.model_json_schema()},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user