@google/adk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/agents/functions.js +23 -32
  2. package/dist/cjs/agents/invocation_context.js +1 -3
  3. package/dist/cjs/agents/llm_agent.js +7 -2
  4. package/dist/cjs/agents/run_config.js +13 -17
  5. package/dist/cjs/artifacts/gcs_artifact_service.js +140 -0
  6. package/dist/cjs/common.js +3 -2
  7. package/dist/cjs/index.js +5 -5
  8. package/dist/cjs/index.js.map +4 -4
  9. package/dist/cjs/runner/runner.js +2 -1
  10. package/dist/cjs/sessions/database_session_service.js +52 -0
  11. package/dist/esm/agents/functions.js +23 -32
  12. package/dist/esm/agents/invocation_context.js +1 -3
  13. package/dist/esm/agents/llm_agent.js +7 -2
  14. package/dist/esm/agents/run_config.js +11 -15
  15. package/dist/esm/artifacts/gcs_artifact_service.js +110 -0
  16. package/dist/esm/common.js +3 -2
  17. package/dist/esm/index.js +5 -5
  18. package/dist/esm/index.js.map +4 -4
  19. package/dist/esm/runner/runner.js +3 -2
  20. package/dist/esm/sessions/database_session_service.js +22 -0
  21. package/dist/types/agents/run_config.d.ts +19 -7
  22. package/dist/types/artifacts/gcs_artifact_service.d.ts +16 -0
  23. package/dist/types/common.d.ts +4 -1
  24. package/dist/types/index.d.ts +1 -0
  25. package/dist/types/models/base_llm.d.ts +7 -4
  26. package/dist/types/models/google_llm.d.ts +1 -1
  27. package/dist/types/models/registry.d.ts +6 -2
  28. package/dist/types/sessions/database_session_service.d.ts +10 -0
  29. package/dist/web/agents/functions.js +23 -32
  30. package/dist/web/agents/invocation_context.js +1 -3
  31. package/dist/web/agents/llm_agent.js +7 -2
  32. package/dist/web/agents/run_config.js +26 -15
  33. package/dist/web/artifacts/gcs_artifact_service.js +126 -0
  34. package/dist/web/common.js +3 -2
  35. package/dist/web/index.js +1 -1
  36. package/dist/web/index.js.map +4 -4
  37. package/dist/web/runner/runner.js +3 -2
  38. package/dist/web/sessions/database_session_service.js +22 -0
  39. package/package.json +2 -1
@@ -24,7 +24,7 @@ import { createPartFromText } from "@google/genai";
24
24
  import { trace } from "@opentelemetry/api";
25
25
  import { InvocationContext, newInvocationContextId } from "../agents/invocation_context.js";
26
26
  import { LlmAgent } from "../agents/llm_agent.js";
27
- import { RunConfig } from "../agents/run_config.js";
27
+ import { createRunConfig } from "../agents/run_config.js";
28
28
  import { createEvent, getFunctionCalls } from "../events/event.js";
29
29
  import { createEventActions } from "../events/event_actions.js";
30
30
  import { PluginManager } from "../plugins/plugin_manager.js";
@@ -58,9 +58,10 @@ class Runner {
58
58
  sessionId,
59
59
  newMessage,
60
60
  stateDelta,
61
- runConfig = new RunConfig()
61
+ runConfig
62
62
  }) {
63
63
  var _a;
64
+ runConfig = createRunConfig(runConfig);
64
65
  const span = trace.getTracer("gcp.vertex.agent").startSpan("invocation");
65
66
  try {
66
67
  const session = yield new __await(this.sessionService.getSession({ appName: this.appName, userId, sessionId }));
@@ -0,0 +1,22 @@
1
+ import { BaseSessionService } from "./base_session_service.js";
2
+ class DatabaseSessionService extends BaseSessionService {
3
+ constructor(dbUrl) {
4
+ super();
5
+ this.dbUrl = dbUrl;
6
+ }
7
+ createSession(request) {
8
+ throw new Error("Method not implemented.");
9
+ }
10
+ getSession(request) {
11
+ throw new Error("Method not implemented.");
12
+ }
13
+ listSessions(request) {
14
+ throw new Error("Method not implemented.");
15
+ }
16
+ deleteSession(request) {
17
+ throw new Error("Method not implemented.");
18
+ }
19
+ }
20
+ export {
21
+ DatabaseSessionService
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/adk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Google ADK JS",
5
5
  "author": "Google",
6
6
  "license": "Apache-2.0",
@@ -42,6 +42,7 @@
42
42
  "openapi-types": "^12.1.3"
43
43
  },
44
44
  "peerDependencies": {
45
+ "@google-cloud/storage": "^7.17.1",
45
46
  "@google/genai": "1.14.0",
46
47
  "@modelcontextprotocol/sdk": "1.17.5",
47
48
  "@opentelemetry/api": "1.9.0",