22
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import Dict , Optional
66
77import httpx
88
@@ -537,6 +537,7 @@ def start_execution(
537537 self ,
538538 * ,
539539 agent_id : str | Omit = omit ,
540+ annotations : Dict [str , str ] | Omit = omit ,
540541 code_context : AgentCodeContextParam | Omit = omit ,
541542 mode : AgentMode | Omit = omit ,
542543 name : str | Omit = omit ,
@@ -567,6 +568,10 @@ def start_execution(
567568 ```
568569
569570 Args:
571+ annotations: annotations are key-value pairs for tracking external context (e.g., Linear
572+ session IDs, GitHub issue references). Keys should follow domain/name convention
573+ (e.g., "linear.app/session-id").
574+
570575 mode: mode specifies the operational mode for this agent execution If not specified,
571576 defaults to AGENT_MODE_EXECUTION
572577
@@ -590,6 +595,7 @@ def start_execution(
590595 body = maybe_transform (
591596 {
592597 "agent_id" : agent_id ,
598+ "annotations" : annotations ,
593599 "code_context" : code_context ,
594600 "mode" : mode ,
595601 "name" : name ,
@@ -1197,6 +1203,7 @@ async def start_execution(
11971203 self ,
11981204 * ,
11991205 agent_id : str | Omit = omit ,
1206+ annotations : Dict [str , str ] | Omit = omit ,
12001207 code_context : AgentCodeContextParam | Omit = omit ,
12011208 mode : AgentMode | Omit = omit ,
12021209 name : str | Omit = omit ,
@@ -1227,6 +1234,10 @@ async def start_execution(
12271234 ```
12281235
12291236 Args:
1237+ annotations: annotations are key-value pairs for tracking external context (e.g., Linear
1238+ session IDs, GitHub issue references). Keys should follow domain/name convention
1239+ (e.g., "linear.app/session-id").
1240+
12301241 mode: mode specifies the operational mode for this agent execution If not specified,
12311242 defaults to AGENT_MODE_EXECUTION
12321243
@@ -1250,6 +1261,7 @@ async def start_execution(
12501261 body = await async_maybe_transform (
12511262 {
12521263 "agent_id" : agent_id ,
1264+ "annotations" : annotations ,
12531265 "code_context" : code_context ,
12541266 "mode" : mode ,
12551267 "name" : name ,
0 commit comments