You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*(Make sure to update the `BUS_NAME` variable in `agent.py` to match your actual bus URI).*
48
48
49
+
3. Install the GCP extra dependency (required for Eventarc publishing):
50
+
51
+
```bash
52
+
pip install "google-adk[gcp]"
53
+
```
54
+
49
55
`create_publish_tool` is highly flexible. It uses `pydantic.create_model` to construct the LLM's function signature, encapsulating the `payload_schema` inside an `event_data` parameter and appending any parameter marked with `AgentProvided`.
### Example C: Lambda Execution & Mixed Custom Attributes
91
97
92
-
The developer uses Python callables to generate IDs dynamically at runtime.
98
+
The developer uses Python callables to generate attributes dynamically at runtime. Callables can inspect the event payload, the agent's runtime `Context` (`tool_context`), or both.
**What the Agent Sees:**`complete_outreach_lambda(event_data: OutreachContext, priority: str)`
116
125
117
-
### Example D: Empty Payloads & Dynamic Defaults
126
+
### Example D: Empty Payloads, Omit Headers & Dynamic Defaults
118
127
119
-
The developer wants to emit a simple signal (no business payload). If the agent omits the priority, it is dynamically calculated.
128
+
The developer wants to emit a simple signal (no business payload) without a timestamp header (`time=OMIT`). If the agent omits the priority, it is dynamically calculated.
0 commit comments