Skip to content

Commit bab8fb3

Browse files
authored
Merge branch 'main' into feature/ollama-llm
2 parents 998fc6e + 1de65cf commit bab8fb3

File tree

5 files changed

+877
-379
lines changed

5 files changed

+877
-379
lines changed

contributing/samples/hello_world_stream_fc_args/agent.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ def concat_number_and_string(num: int, s: str) -> str:
2929
return str(num) + ': ' + s
3030

3131

32+
def write_document(document: str) -> dict[str, str]:
33+
"""Write a document."""
34+
return {'status': 'ok'}
35+
36+
3237
root_agent = Agent(
3338
model='gemini-3-pro-preview',
3439
name='hello_world_stream_fc_args',
@@ -38,9 +43,14 @@ def concat_number_and_string(num: int, s: str) -> str:
3843
You can use the `concat_number_and_string` tool to concatenate a number and a string.
3944
You should always call the concat_number_and_string tool to concatenate a number and a string.
4045
You should never concatenate on your own.
46+
47+
You can use the `write_document` tool to write a document.
48+
You should always call the write_document tool to write a document.
49+
You should never write a document on your own.
4150
""",
4251
tools=[
4352
concat_number_and_string,
53+
write_document,
4454
],
4555
generate_content_config=types.GenerateContentConfig(
4656
automatic_function_calling=types.AutomaticFunctionCallingConfig(

0 commit comments

Comments
 (0)