Skip to content

Commit 078600a

Browse files
Open Agent Spec Tracing
* Pyagentspec tracing * Update json schema spec of 26.1.0 * Update exception handling, name changes * simplify langgraph tracing * Rename humanintheloop. Change models subpackage name to messages. Remove mentions of telemetry from docs. * Changed some documentation. Added tests on different types of calls for crewai and langgraph tracing. --------- Co-authored-by: Son Le <tran.minh.son.le@oracle.com>
1 parent 14b973b commit 078600a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4873
-78
lines changed

docs/pyagentspec/source/agentspec/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ with all the latest updates at :ref:`this link<agentspecspec_nightly>`.
2828
Introduction, motivation & vision <intro_and_motivation>
2929
Language specification (v25.4.1) <language_spec_25_4_1>
3030
Positioning in the agentic ecosystem <positioning>
31+
Tracing <tracing>

docs/pyagentspec/source/agentspec/json_spec/agentspec_json_spec_26_1_0.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3669,6 +3669,18 @@
36693669
"$ref": "#/$defs/OpenAIAPIType",
36703670
"default": "chat_completions"
36713671
},
3672+
"api_key": {
3673+
"anyOf": [
3674+
{
3675+
"type": "string"
3676+
},
3677+
{
3678+
"type": "null"
3679+
}
3680+
],
3681+
"default": null,
3682+
"title": "Api Key"
3683+
},
36723684
"$referenced_components": {
36733685
"$ref": "#/$defs/ReferencedComponents"
36743686
},

docs/pyagentspec/source/agentspec/language_spec_nightly.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,13 +649,15 @@ OpenAI
649649
This class of LLMs refers to the models offered by `OpenAI <https://openai.com>`_.
650650
Similar to :ref:`OpenAI Compatible LLMs <openaicompatiblellms>`, you can also configure the ``api_type`` parameter,
651651
which takes one of 2 string values, namely ``chat_completions`` or ``responses``.
652-
By default, the API type is set to chat completions.
652+
By default, the API type is set to chat completions. Additionally, an optional
653+
``api_key`` can be set for the remote LLM model.
653654

654655
.. code-block:: python
655656
656657
class OpenAiConfig(LlmConfig):
657658
model_id: str
658659
api_type: Literal["chat_completions", "responses"] = "chat_completions"
660+
api_key: SensitiveField[Optional[str]] = None
659661
660662
OCI GenAI
661663
^^^^^^^^^
@@ -2365,6 +2367,8 @@ See all the fields below that are considered sensitive fields:
23652367
+==================================+====================+
23662368
| OpenAiCompatibleConfig | api_key |
23672369
+----------------------------------+--------------------+
2370+
| OpenAiConfig | api_key |
2371+
+----------------------------------+--------------------+
23682372
| OciClientConfigWithSecurityToken | auth_file_location |
23692373
+----------------------------------+--------------------+
23702374
| OciClientConfigWithApiKey | auth_file_location |

0 commit comments

Comments
 (0)