mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-24 06:07:44 -06:00
Convert Session To Invocation.
PiperOrigin-RevId: 758356942
This commit is contained in:
committed by
Copybara-Service
parent
4188673b0f
commit
82b8e304ec
@@ -13,7 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
from typing import Any, Optional
|
||||
from typing import Any, Optional, Tuple
|
||||
|
||||
from google.genai import types as genai_types
|
||||
from pydantic import BaseModel
|
||||
@@ -26,9 +26,16 @@ class IntermediateData(BaseModel):
|
||||
tool_uses: list[genai_types.FunctionCall]
|
||||
"""Tool use trajectory in chronological order."""
|
||||
|
||||
intermediate_responses: list[genai_types.Part]
|
||||
intermediate_responses: list[Tuple[str, list[genai_types.Part]]]
|
||||
"""Intermediate responses generated by sub-agents to convey progress or status
|
||||
in a multi-agent system, distinct from the final response."""
|
||||
in a multi-agent system, distinct from the final response.
|
||||
|
||||
This is expressed as a Tuple of:
|
||||
- Author: Usually the sub-agent name that generated the intermediate
|
||||
response.
|
||||
|
||||
- A list of Parts that comprise of the response.
|
||||
"""
|
||||
|
||||
|
||||
class Invocation(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user