mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-13 21:29:57 +00:00
Merge branch 'agents-unify-tools' into agents-unify-tools-2
This commit is contained in:
commit
4dbe3fd9e6
4 changed files with 8 additions and 27 deletions
11
docs/_static/llama-stack-spec.html
vendored
11
docs/_static/llama-stack-spec.html
vendored
|
@ -3954,23 +3954,16 @@
|
||||||
"ContinueAgentTurnRequest": {
|
"ContinueAgentTurnRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"new_messages": {
|
"tool_responses": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/UserMessage"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/ToolResponseMessage"
|
"$ref": "#/components/schemas/ToolResponseMessage"
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"new_messages"
|
"tool_responses"
|
||||||
],
|
],
|
||||||
"title": "ContinueAgentTurnRequest"
|
"title": "ContinueAgentTurnRequest"
|
||||||
},
|
},
|
||||||
|
|
8
docs/_static/llama-stack-spec.yaml
vendored
8
docs/_static/llama-stack-spec.yaml
vendored
|
@ -2573,15 +2573,13 @@ components:
|
||||||
ContinueAgentTurnRequest:
|
ContinueAgentTurnRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
new_messages:
|
tool_responses:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
oneOf:
|
$ref: '#/components/schemas/ToolResponseMessage'
|
||||||
- $ref: '#/components/schemas/UserMessage'
|
|
||||||
- $ref: '#/components/schemas/ToolResponseMessage'
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- new_messages
|
- tool_responses
|
||||||
title: ContinueAgentTurnRequest
|
title: ContinueAgentTurnRequest
|
||||||
InferenceStep:
|
InferenceStep:
|
||||||
type: object
|
type: object
|
||||||
|
|
|
@ -354,12 +354,7 @@ class Agents(Protocol):
|
||||||
agent_id: str,
|
agent_id: str,
|
||||||
session_id: str,
|
session_id: str,
|
||||||
turn_id: str,
|
turn_id: str,
|
||||||
new_messages: List[
|
tool_responses: List[ToolResponseMessage],
|
||||||
Union[
|
|
||||||
UserMessage,
|
|
||||||
ToolResponseMessage,
|
|
||||||
]
|
|
||||||
],
|
|
||||||
) -> Union[Turn, AsyncIterator[AgentTurnResponseStreamChunk]]: ...
|
) -> Union[Turn, AsyncIterator[AgentTurnResponseStreamChunk]]: ...
|
||||||
|
|
||||||
@webmethod(
|
@webmethod(
|
||||||
|
|
|
@ -174,12 +174,7 @@ class MetaReferenceAgentsImpl(Agents):
|
||||||
agent_id: str,
|
agent_id: str,
|
||||||
session_id: str,
|
session_id: str,
|
||||||
turn_id: str,
|
turn_id: str,
|
||||||
new_messages: List[
|
tool_responses: List[ToolResponseMessage],
|
||||||
Union[
|
|
||||||
UserMessage,
|
|
||||||
ToolResponseMessage,
|
|
||||||
]
|
|
||||||
],
|
|
||||||
) -> AsyncGenerator:
|
) -> AsyncGenerator:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue