mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2026-02-04 05:46:24 -06:00
chore: include contributing/ folder in autoformat.sh
Also formatted the files in that folder in this same commit. PiperOrigin-RevId: 766885306
This commit is contained in:
committed by
Copybara-Service
parent
e99f87de73
commit
433c423d35
@@ -19,15 +19,12 @@ from google.genai import types
|
||||
|
||||
|
||||
async def log_query(tool_context: ToolContext, query: str):
|
||||
"""Saves the provided query string as a 'text/plain' artifact named 'query'."""
|
||||
query_bytes = query.encode('utf-8')
|
||||
artifact_part = types.Part(
|
||||
inline_data=types.Blob(
|
||||
mime_type='text/plain',
|
||||
data=query_bytes
|
||||
)
|
||||
)
|
||||
await tool_context.save_artifact('query', artifact_part)
|
||||
"""Saves the provided query string as a 'text/plain' artifact named 'query'."""
|
||||
query_bytes = query.encode('utf-8')
|
||||
artifact_part = types.Part(
|
||||
inline_data=types.Blob(mime_type='text/plain', data=query_bytes)
|
||||
)
|
||||
await tool_context.save_artifact('query', artifact_part)
|
||||
|
||||
|
||||
root_agent = Agent(
|
||||
|
||||
Reference in New Issue
Block a user